Skip to Content Skip to Search
Methods
O

Instance Public methods

optedout()

# File engines/member/app/controllers/member/notifications_controller.rb, line 16
def optedout
  render "optedout_already" if params[:result] == "already"
end

optout()

# File engines/member/app/controllers/member/notifications_controller.rb, line 6
def optout
  current_member.disable_new_content_notifications!

  if opted_out?
    redirect_to current_site.widget_url(notifications_optedout_path)
  else
    redirect_to current_site.widget_url(notifications_optedout_path(result: :already))
  end
end