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:
parent
af3dc42ee3
commit
a8db0328a5
2 changed files with 6 additions and 6 deletions
|
@ -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
|
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue