diff options
author | Paul Rosania <paul.rosania@gmail.com> | 2010-01-27 01:08:50 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-01-29 19:25:58 -0800 |
commit | 766e857bea9bd29f27be1ccd888eec066f2e3f04 (patch) | |
tree | 8fb8934ba767997fd944c70379d01fcdbb6d6342 /railties/lib/rails/plugin.rb | |
parent | a06c47a52b90a5d812e64309488ad5926dc583ca (diff) | |
download | rails-766e857bea9bd29f27be1ccd888eec066f2e3f04.tar.gz rails-766e857bea9bd29f27be1ccd888eec066f2e3f04.tar.bz2 rails-766e857bea9bd29f27be1ccd888eec066f2e3f04.zip |
tsort-based dependency resolution for initializers
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties/lib/rails/plugin.rb')
-rw-r--r-- | railties/lib/rails/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 881c97f02d..64d03e7599 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -43,7 +43,7 @@ module Rails @config ||= Engine::Configuration.new end - initializer :load_init_rb do |app| + initializer :load_init_rb, :before => :load_application_initializers do |app| file = Dir["#{root}/{rails/init,init}.rb"].first config = app.config eval(File.read(file), binding, file) if file && File.file?(file) |