diff options
Diffstat (limited to 'railties/lib/initializer.rb')
-rw-r--r-- | railties/lib/initializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 082c14c634..69deedf179 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -306,7 +306,7 @@ module Rails config = configuration # Evaluate init.rb. - silence_warnings { eval(IO.read(init_path), binding) } if has_init + silence_warnings { eval(IO.read(init_path), binding, init_path) } if has_init # Add to set of loaded plugins. loaded_plugins << name |