From 046e32656efa989a112e9870d8aa25a49f944204 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Wed, 24 Feb 2016 12:35:36 -0600 Subject: Convert stream broadcasting to a string ActionCable does some things behind the scenes that expects these "broadcasting"s or "channel"s to be strings. However it's not immediately obvious that the value must be a string. So adding this conversion ensures things work as expected. --- actioncable/lib/action_cable/channel/streams.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actioncable/lib/action_cable/channel') diff --git a/actioncable/lib/action_cable/channel/streams.rb b/actioncable/lib/action_cable/channel/streams.rb index 3e3be4cd44..28092a8b2b 100644 --- a/actioncable/lib/action_cable/channel/streams.rb +++ b/actioncable/lib/action_cable/channel/streams.rb @@ -72,6 +72,7 @@ module ActionCable # Start streaming from the named broadcasting pubsub queue. Optionally, you can pass a callback that'll be used # instead of the default of just transmitting the updates straight to the subscriber. def stream_from(broadcasting, callback = nil) + broadcasting = String(broadcasting) # Don't send the confirmation until pubsub#subscribe is successful defer_subscription_confirmation! -- cgit v1.2.3