aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/action_cable/channel/base.rb4
-rw-r--r--test/channel/rejection_test.rb2
2 files changed, 3 insertions, 3 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
diff --git a/test/channel/rejection_test.rb b/test/channel/rejection_test.rb
index 0e9725742c..aa93396d44 100644
--- a/test/channel/rejection_test.rb
+++ b/test/channel/rejection_test.rb
@@ -5,7 +5,7 @@ require 'stubs/room'
class ActionCable::Channel::RejectionTest < ActiveSupport::TestCase
class SecretChannel < ActionCable::Channel::Base
def subscribed
- reject! if params[:id] > 0
+ reject if params[:id] > 0
end
end