diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2015-11-05 09:37:15 -0600 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2015-11-05 09:37:15 -0600 |
commit | 37fe48928e4d4b254791eb8034c20baabe06a483 (patch) | |
tree | 9d18c321ae3170ef76edfe9830b5698cade6343b /lib/action_cable | |
parent | de64aa3440f85b74692b61f7e46a14a1a7003e56 (diff) | |
download | rails-37fe48928e4d4b254791eb8034c20baabe06a483.tar.gz rails-37fe48928e4d4b254791eb8034c20baabe06a483.tar.bz2 rails-37fe48928e4d4b254791eb8034c20baabe06a483.zip |
Rename Subscription#reject! to Subscription#reject as there's only one version of the method
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 |