aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/base.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-06-19 19:05:06 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-06-19 19:05:06 +0200
commit2258344e0fbeb1af74ebe477f392a76fa6d6f4ef (patch)
tree472e28efbd0c49e0136c506aa073690cf09591c0 /lib/action_cable/connection/base.rb
parent471ba41fddeff19f04f8d29bfe0df3c3f497407a (diff)
downloadrails-2258344e0fbeb1af74ebe477f392a76fa6d6f4ef.tar.gz
rails-2258344e0fbeb1af74ebe477f392a76fa6d6f4ef.tar.bz2
rails-2258344e0fbeb1af74ebe477f392a76fa6d6f4ef.zip
Switch internal actions to be called commands instead, such that we can use action as the routing word on the user side
Diffstat (limited to 'lib/action_cable/connection/base.rb')
-rw-r--r--lib/action_cable/connection/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb
index fff6fd46a6..5c2ee14258 100644
--- a/lib/action_cable/connection/base.rb
+++ b/lib/action_cable/connection/base.rb
@@ -69,7 +69,7 @@ module ActionCable
data = ActiveSupport::JSON.decode data
- case data['action']
+ case data['command']
when 'subscribe'
subscribe_channel(data)
when 'unsubscribe'