aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/connection')
-rw-r--r--lib/action_cable/connection/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb
index 32f6d0ae91..321a57fe44 100644
--- a/lib/action_cable/connection/base.rb
+++ b/lib/action_cable/connection/base.rb
@@ -64,9 +64,9 @@ module ActionCable
end
end
- def receive_data(data)
+ def receive_data(data_in_json)
if websocket_alive?
- data = ActiveSupport::JSON.decode data
+ data = ActiveSupport::JSON.decode data_in_json
case data['command']
when 'subscribe'