diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-10 16:25:06 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-10 16:25:06 +0000 |
commit | 3488ff6fc6aa091821088df47ee0ca3ebdd594f0 (patch) | |
tree | 48ff6eb21c58970264ead0b92e0895ebd5093b92 /railties/lib/initializer.rb | |
parent | dfda57af8547798ebedd7f79603431137b9e5904 (diff) | |
download | rails-3488ff6fc6aa091821088df47ee0ca3ebdd594f0.tar.gz rails-3488ff6fc6aa091821088df47ee0ca3ebdd594f0.tar.bz2 rails-3488ff6fc6aa091821088df47ee0ca3ebdd594f0.zip |
Pass __FILE__ when evaluating plugins' init.rb. Closes #2817.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |