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

engines_blank_point should always be the last initializer in Engine

This commit is contained in:
Piotr Sarnacki 2010-09-01 11:07:39 +02:00
parent a5e509d6b1
commit b43b686b02

View file

@ -431,11 +431,6 @@ module Rails
end end
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 initializer :load_environment_config, :before => :load_environment_hook do
environment = config.paths.config.environments.to_a.first environment = config.paths.config.environments.to_a.first
require environment if environment require environment if environment
@ -457,6 +452,11 @@ module Rails
end end
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 protected
def find_root_with_flag(flag, default=nil) def find_root_with_flag(flag, default=nil)
root_path = self.class.called_from root_path = self.class.called_from