From 37fe48928e4d4b254791eb8034c20baabe06a483 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Thu, 5 Nov 2015 09:37:15 -0600 Subject: Rename Subscription#reject! to Subscription#reject as there's only one version of the method --- lib/action_cable/channel/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3