Rename Subscription#reject! to Subscription#reject as there's only one version of the method

This commit is contained in:
Pratik Naik 2015-11-05 09:37:15 -06:00
parent de64aa3440
commit 37fe48928e
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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