Sha256: 2f117b06721d11ac1dc7536786d1c695b094ac3a32e0de489845978d952c1c0b
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
class SimpleDiscussion::NotificationsController < SimpleDiscussion::ApplicationController before_action :authenticate_user! before_action :set_forum_thread def create @forum_thread.toggle_subscription(current_user) redirect_to simple_discussion.forum_thread_path(@forum_thread) end def show redirect_to simple_discussion.forum_thread_path(@forum_thread) end private def set_forum_thread @forum_thread = ForumThread.friendly.find(params[:forum_thread_id]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_discussion-1.3.0 | app/controllers/simple_discussion/notifications_controller.rb |