Class: SimpleDiscussion::NotificationsController
Instance Method Summary
collapse
#is_moderator?, #is_moderator_or_owner?, #page_number, #require_mod_or_author_for_post!, #require_mod_or_author_for_thread!
Instance Method Details
#create ⇒ Object
5
6
7
8
|
# File 'app/controllers/simple_discussion/notifications_controller.rb', line 5
def create
@forum_thread.toggle_subscription(current_user)
redirect_to simple_discussion.forum_thread_path(@forum_thread)
end
|
#show ⇒ Object
10
11
12
|
# File 'app/controllers/simple_discussion/notifications_controller.rb', line 10
def show
redirect_to simple_discussion.forum_thread_path(@forum_thread)
end
|