aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable
diff options
context:
space:
mode:
authorVladimir Dementyev <dementiev.vm@gmail.com>2019-01-29 22:07:49 -0500
committerVladimir Dementyev <dementiev.vm@gmail.com>2019-01-29 22:07:49 -0500
commit8ed276b2f785710420fc51cd1b8fccd89cb4a06e (patch)
tree8658c241b7e05fdae5d2da5c3469bc889b0a4953 /actioncable/lib/action_cable
parent94d54fa4ab641a0ddeb173409cb41cc5becc02a9 (diff)
downloadrails-8ed276b2f785710420fc51cd1b8fccd89cb4a06e.tar.gz
rails-8ed276b2f785710420fc51cd1b8fccd89cb4a06e.tar.bz2
rails-8ed276b2f785710420fc51cd1b8fccd89cb4a06e.zip
Add ActionCable channel/connection load hooks
Diffstat (limited to 'actioncable/lib/action_cable')
-rw-r--r--actioncable/lib/action_cable/channel/base.rb2
-rw-r--r--actioncable/lib/action_cable/connection/base.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/actioncable/lib/action_cable/channel/base.rb b/actioncable/lib/action_cable/channel/base.rb
index ad0d3685cd..af061c843a 100644
--- a/actioncable/lib/action_cable/channel/base.rb
+++ b/actioncable/lib/action_cable/channel/base.rb
@@ -307,3 +307,5 @@ module ActionCable
end
end
end
+
+ActiveSupport.run_load_hooks(:action_cable_channel, ActionCable::Channel::Base)
diff --git a/actioncable/lib/action_cable/connection/base.rb b/actioncable/lib/action_cable/connection/base.rb
index 0044afad98..c469f7066c 100644
--- a/actioncable/lib/action_cable/connection/base.rb
+++ b/actioncable/lib/action_cable/connection/base.rb
@@ -260,3 +260,5 @@ module ActionCable
end
end
end
+
+ActiveSupport.run_load_hooks(:action_cable_connection, ActionCable::Connection::Base)