From acfdcf556888a88dc2d2026553d585f920fae105 Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Fri, 16 Oct 2015 01:02:22 -0700 Subject: Devolve blanket #require to reveal intent and responsibility * Move specific requires close to where they're needed. * Use the private active_support/rails dep to wrap up common needs like eager autoload and module delegation. * Use a single Rails engine rather than an engine and a railtie. * Prefer `AS::JSON.encode` to `Object#to_json`. --- lib/action_cable/connection/subscriptions.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/action_cable/connection/subscriptions.rb') diff --git a/lib/action_cable/connection/subscriptions.rb b/lib/action_cable/connection/subscriptions.rb index 69e3f60706..229be2a316 100644 --- a/lib/action_cable/connection/subscriptions.rb +++ b/lib/action_cable/connection/subscriptions.rb @@ -1,3 +1,5 @@ +require 'active_support/core_ext/hash/indifferent_access' + module ActionCable module Connection # Collection class for all the channel subscriptions established on a given connection. Responsible for routing incoming commands that arrive on -- cgit v1.2.3