aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/connection')
-rw-r--r--lib/action_cable/connection/subscriptions.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/action_cable/connection/subscriptions.rb b/lib/action_cable/connection/subscriptions.rb
index dbba8eca1d..a37708d85f 100644
--- a/lib/action_cable/connection/subscriptions.rb
+++ b/lib/action_cable/connection/subscriptions.rb
@@ -40,9 +40,7 @@ module ActionCable
end
def cleanup
- subscriptions.each do |id, channel|
- channel.perform_disconnection
- end
+ subscriptions.each { |id, channel| channel.perform_disconnection }
end
private