aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/action_cable/channel/base.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb
index 366ffb1da8..1ec4ee5fe9 100644
--- a/lib/action_cable/channel/base.rb
+++ b/lib/action_cable/channel/base.rb
@@ -19,11 +19,6 @@ module ActionCable
subscribe_to_channel
end
- def subscribe_to_channel
- logger.info "#{channel_name} subscribing"
- run_subscribe_callbacks
- end
-
def perform_action(data)
if authorized?
action = extract_action(data)
@@ -81,6 +76,11 @@ module ActionCable
private
+ def subscribe_to_channel
+ logger.info "#{channel_name} subscribing"
+ run_subscribe_callbacks
+ end
+
def extract_action(data)
(data['action'].presence || :receive).to_sym
end