From 890bee58f31ffe65e0127a8795c3432a18633013 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 21 Jun 2015 19:49:31 +0200 Subject: Clarify that the incoming data is JSON --- lib/action_cable/connection/base.rb | 4 ++-- 1 file 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' -- cgit v1.2.3