Skip to content

Commit

Permalink
Merge pull request #2683 from arunagw/engine_test_fix
Browse files Browse the repository at this point in the history
Engine test fix
  • Loading branch information
tenderlove committed Aug 25, 2011
2 parents 933120c + dcb5f2b commit 9c33576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/lib/rails/plugin.rb
Expand Up @@ -74,8 +74,8 @@ def config
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)
Expand Down

0 comments on commit 9c33576

Please sign in to comment.