aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-15 13:10:27 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-15 13:10:27 +0100
commita8db0328a5452130b87b568b66fbd125eb10d45d (patch)
treeb2ba04806268ee6cdea3d45496f30627b42536f6 /actioncable
parentaf3dc42ee357a8f70148c9dc9572276a9824aeec (diff)
downloadrails-a8db0328a5452130b87b568b66fbd125eb10d45d.tar.gz
rails-a8db0328a5452130b87b568b66fbd125eb10d45d.tar.bz2
rails-a8db0328a5452130b87b568b66fbd125eb10d45d.zip
Switch from engine to railtie
Diffstat (limited to 'actioncable')
-rw-r--r--actioncable/lib/action_cable/railtie.rb (renamed from actioncable/lib/action_cable/engine.rb)10
1 files changed, 5 insertions, 5 deletions
diff --git a/actioncable/lib/action_cable/engine.rb b/actioncable/lib/action_cable/railtie.rb
index 071dcd73e4..a1a656f790 100644
--- a/actioncable/lib/action_cable/engine.rb
+++ b/actioncable/lib/action_cable/railtie.rb
@@ -1,11 +1,11 @@
-require 'rails/engine'
-require 'action_cable'
-require 'active_support/ordered_options'
-require 'action_cable/helpers/action_cable_helper'
+require "rails"
+require "action_cable"
+require "action_cable/helpers/action_cable_helper"
module ActionCable
- class Engine < ::Rails::Engine
+ class Railtie < Rails::Railtie # :nodoc:
config.action_cable = ActiveSupport::OrderedOptions.new
+ config.eager_load_namespaces << ActionCable
initializer "action_cable.helpers" do
ActiveSupport.on_load(:action_view) do