diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2015-10-15 12:42:55 -0500 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2015-10-15 12:42:55 -0500 |
commit | db56e8bf3ba8f562219f9f87d300153e848ed8b2 (patch) | |
tree | 326a094caa1af68b1db87b89216f609ef0c9f707 /lib/action_cable | |
parent | ba95d86ef8df10cedc6c00a14c50b24d2dee3af6 (diff) | |
download | rails-db56e8bf3ba8f562219f9f87d300153e848ed8b2.tar.gz rails-db56e8bf3ba8f562219f9f87d300153e848ed8b2.tar.bz2 rails-db56e8bf3ba8f562219f9f87d300153e848ed8b2.zip |
Fix the variable name in error message to make sure it does not raise an exception
Diffstat (limited to 'lib/action_cable')
-rw-r--r-- | lib/action_cable/connection/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index 2443b03018..0c2e07489e 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -87,7 +87,7 @@ module ActionCable if websocket.alive? subscriptions.execute_command ActiveSupport::JSON.decode(data_in_json) else - logger.error "Received data without a live websocket (#{data.inspect})" + logger.error "Received data without a live websocket (#{data_in_json.inspect})" end end |