Rename Subscription#reject! to Subscription#reject as there's only one version of the method
This commit is contained in:
parent
de64aa3440
commit
37fe48928e
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue