Class: Thredded::Workgroup::ReadStatesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Thredded::Workgroup::ReadStatesController
- Defined in:
- app/controllers/thredded/workgroup/read_states_controller.rb
Instance Method Summary collapse
Methods included from AllUnreadFollowedTopics
#all_topics_scope, #all_unread_followed_topics_count
Methods included from ApplicationControllerRetaining
#topics_scope, #unread_followed_topics_count
Instance Method Details
#mark_all_topics_read ⇒ Object
8 9 10 11 |
# File 'app/controllers/thredded/workgroup/read_states_controller.rb', line 8 def mark_all_topics_read ::Thredded::Workgroup::MarkAllTopicsReadJob.perform_later(thredded_current_user) if thredded_signed_in? redirect_to request.referer, flash: { notice: "Marking all topics as read (will take a few seconds)" } end |