From 7eb12796cabb1d6784daf261ca8e344513cacede Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 16 Dec 2015 18:15:59 +0100 Subject: Assume that the cable server is running in-process by default, offer option to change that in config/environments/production.rb --- actioncable/lib/action_cable/engine.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actioncable') diff --git a/actioncable/lib/action_cable/engine.rb b/actioncable/lib/action_cable/engine.rb index e62413e9e3..9bb7ef5aff 100644 --- a/actioncable/lib/action_cable/engine.rb +++ b/actioncable/lib/action_cable/engine.rb @@ -6,6 +6,8 @@ require "active_support/core_ext/hash/indifferent_access" module ActionCable class Railtie < Rails::Engine # :nodoc: config.action_cable = ActiveSupport::OrderedOptions.new + config.action_cable.url = '/cable' + config.eager_load_namespaces << ActionCable initializer "action_cable.helpers" do -- cgit v1.2.3