From b43b686b022c4253a4a6f6f1b663b99d7a9adf4f Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 1 Sep 2010 11:07:39 +0200 Subject: engines_blank_point should always be the last initializer in Engine --- railties/lib/rails/engine.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 2028246585..be63363242 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -431,11 +431,6 @@ module Rails 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. - end - initializer :load_environment_config, :before => :load_environment_hook do environment = config.paths.config.environments.to_a.first require environment if environment @@ -457,6 +452,11 @@ module Rails 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. + end + protected def find_root_with_flag(flag, default=nil) root_path = self.class.called_from -- cgit v1.2.3