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:
parent
a5e509d6b1
commit
b43b686b02
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue