diff options
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r-- | railties/lib/rails/engine.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 1990aa5261..e10980a6d9 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -427,12 +427,6 @@ module Rails end end - initializer :load_config_initializers do - paths.config.initializers.to_a.sort.each do |initializer| - load(initializer) - end - end - initializer :load_environment_config, :before => :load_environment_hook do environment = config.paths.config.environments.to_a.first require environment if environment @@ -454,6 +448,12 @@ module Rails end end + initializer :load_config_initializers do + paths.config.initializers.to_a.sort.each do |initializer| + load(initializer) + end + end + initializer :engines_blank_point do # We need this initializer so all extra initializers added in engines are # consistently executed after all the initializers above across all engines. |