Sha256: 7278036d4b3b22dd90e0bd20a82ade2509987b3e4e95a693f66a42f80cde1b1c

Contents?: true

Size: 503 Bytes

Versions: 9

Compression:

Stored size: 503 Bytes

Contents

class HelpCenter::NotificationsController < HelpCenter::ApplicationController
  before_action :authenticate_user!
  before_action :set_support_thread

  def create
    @support_thread.toggle_subscription(current_user)
    redirect_to help_center.support_thread_path(@support_thread)
  end

  def show
    redirect_to help_center.support_thread_path(@support_thread)
  end

  private

    def set_support_thread
      @support_thread = SupportThread.friendly.find(params[:support_thread_id])
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
help_center-0.1.0 app/controllers/help_center/notifications_controller.rb
help_center-0.0.9 app/controllers/help_center/notifications_controller.rb
help_center-0.0.8 app/controllers/help_center/notifications_controller.rb
help_center-0.0.7 app/controllers/help_center/notifications_controller.rb
help_center-0.0.6 app/controllers/help_center/notifications_controller.rb
help_center-0.0.4 app/controllers/help_center/notifications_controller.rb
help_center-0.0.3 app/controllers/help_center/notifications_controller.rb
help_center-0.0.2 app/controllers/help_center/notifications_controller.rb
help_center-0.0.1 app/controllers/help_center/notifications_controller.rb