From 9ce6fe439ad58cb44f25d7ec785e9f04da83becd Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Fri, 4 Mar 2016 09:30:15 -0600 Subject: [PATCH] Make sure ActionCable.Subscriptions#create always returns the newly created subscription object --- .../app/assets/javascripts/action_cable/subscriptions.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actioncable/app/assets/javascripts/action_cable/subscriptions.coffee b/actioncable/app/assets/javascripts/action_cable/subscriptions.coffee index 326e2ec20b..d3ce67135d 100644 --- a/actioncable/app/assets/javascripts/action_cable/subscriptions.coffee +++ b/actioncable/app/assets/javascripts/action_cable/subscriptions.coffee @@ -16,6 +16,8 @@ class ActionCable.Subscriptions subscription = new ActionCable.Subscription @consumer, params, mixin @add(subscription) + subscription + # Private add: (subscription) ->