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

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>
This commit is contained in:
Arun Agrawal 2011-08-25 09:06:11 +05:30 committed by Aaron Patterson
parent df948f3100
commit a840172c53

View file

@ -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)