From e1699dcf56182683b49c4244d9ebe4720ec7fc74 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 2 Feb 2017 16:57:09 +0100 Subject: [PATCH] Fix bug --- app/channels/application_cable/channel.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb index f57bcc56aa..344511caeb 100644 --- a/app/channels/application_cable/channel.rb +++ b/app/channels/application_cable/channel.rb @@ -5,11 +5,11 @@ module ApplicationCable protected def hydrate_status(encoded_message) - message = OJ.load(encoded_message) + message = Oj.load(encoded_message) return [nil, message] if message['event'] == 'delete' - status_json = OJ.load(message['payload']) + status_json = Oj.load(message['payload']) status = Status.find(status_json['id']) [status, message]