1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Switch from engine to railtie

This commit is contained in:
David Heinemeier Hansson 2015-12-15 13:10:27 +01:00
parent af3dc42ee3
commit a8db0328a5
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -6,7 +6,7 @@ require "rails"
action_view/railtie
action_mailer/railtie
active_job/railtie
action_cable/engine
action_cable/railtie
rails/test_unit/railtie
sprockets/railtie
).each do |railtie|