diff options
Diffstat (limited to 'lib/action_cable')
-rw-r--r-- | lib/action_cable/channel/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index 66d60d7e99..b0e112ce38 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -76,7 +76,7 @@ module ActionCable # class ChatChannel < ApplicationCable::Channel # def subscribed # @room = Chat::Room[params[:room_number]] - # reject! unless current_user.can_access?(@room) + # reject unless current_user.can_access?(@room) # end # end # @@ -198,7 +198,7 @@ module ActionCable @subscription_confirmation_sent end - def reject! + def reject @reject_subscription = true end |