Class: Thredded::ReadStatesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/thredded/read_states_controller.rb

Instance Method Summary collapse

Methods included from UrlsHelper

#delete_post_path, #edit_post_path, #edit_preferences_path, #edit_preferences_url, #mark_unread_path, #permalink_path, #post_path, #post_url, #quote_post_path, #search_path, #send_private_message_path, #topic_path, #topic_url, #unread_topics_path, #user_path

Instance Method Details

#updateObject



7
8
9
10
11
# File 'app/controllers/thredded/read_states_controller.rb', line 7

def update
  Thredded::MarkAllRead.run(thredded_current_user) if thredded_signed_in?

  redirect_to request.referer
end