diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-01 11:07:39 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:15 +0200 |
commit | b43b686b022c4253a4a6f6f1b663b99d7a9adf4f (patch) | |
tree | 83b901637b3c714edc9c8b799eb5810002eac7e9 /railties | |
parent | a5e509d6b1a26f12fad65a69d01f450c69e136c1 (diff) | |
download | rails-b43b686b022c4253a4a6f6f1b663b99d7a9adf4f.tar.gz rails-b43b686b022c4253a4a6f6f1b663b99d7a9adf4f.tar.bz2 rails-b43b686b022c4253a4a6f6f1b663b99d7a9adf4f.zip |
engines_blank_point should always be the last initializer in Engine
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/engine.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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 |