aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/channel/base.rb')
-rw-r--r--lib/action_cable/channel/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb
index f309709e31..cc9580ec52 100644
--- a/lib/action_cable/channel/base.rb
+++ b/lib/action_cable/channel/base.rb
@@ -32,7 +32,7 @@ module ActionCable
connect
- subscribe
+ run_subscribe_callbacks
end
def receive_data(data)
@@ -47,13 +47,13 @@ module ActionCable
end
end
- def subscribe
+ def run_subscribe_callbacks
self.class.on_subscribe_callbacks.each do |callback|
send(callback)
end
end
- def unsubscribe
+ def run_unsubscribe_callbacks
self.class.on_unsubscribe_callbacks.each do |callback|
send(callback)
end