diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-08-25 09:06:11 +0530 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-25 11:25:37 -0700 |
commit | a840172c535ae1f8bf29a397185053b85d7b4398 (patch) | |
tree | e9c0aad2b28565f86cc00ed15c40378a14734170 /railties/lib | |
parent | df948f3100b0a4c87801da6f819d7ebebb847aff (diff) | |
download | rails-a840172c535ae1f8bf29a397185053b85d7b4398.tar.gz rails-a840172c535ae1f8bf29a397185053b85d7b4398.tar.bz2 rails-a840172c535ae1f8bf29a397185053b85d7b4398.zip |
Yes we need this to pass the test. we are using config.log_level.
Fix broken test test_copying_migrations(RailtiesTest::EngineTest):
NoMethodError: undefined method `log_level' for #<Rails::Engine::Configuration:0xb87a98c>
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/plugin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 4988cc3378..3e27688bb9 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -74,8 +74,8 @@ module Rails initializer :load_init_rb, :before => :load_config_initializers do |app| init_rb = File.expand_path("init.rb", root) if File.file?(init_rb) - # FIXME: do we call this for side effects?? - app.config + # This double assignment is to prevent an "unused variable" warning on Ruby 1.9.3. + config = config = app.config # TODO: think about evaling initrb in context of Engine (currently it's # always evaled in context of Rails::Application) eval(File.read(init_rb), binding, init_rb) |