diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2016-03-04 09:30:15 -0600 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2016-03-04 09:30:15 -0600 |
commit | 9ce6fe439ad58cb44f25d7ec785e9f04da83becd (patch) | |
tree | 1460804b90d3e91f21f138087353f87f8deb796e | |
parent | c577657f6de64b743b12a21108dc9cc5cfc35098 (diff) | |
download | rails-9ce6fe439ad58cb44f25d7ec785e9f04da83becd.tar.gz rails-9ce6fe439ad58cb44f25d7ec785e9f04da83becd.tar.bz2 rails-9ce6fe439ad58cb44f25d7ec785e9f04da83becd.zip |
Make sure ActionCable.Subscriptions#create always returns the newly created subscription object
-rw-r--r-- | actioncable/app/assets/javascripts/action_cable/subscriptions.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
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) -> |