diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-06-24 10:46:33 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:03 +0200 |
commit | 7c8f73d1bdf80b2c2561d02623db90f3aaad904a (patch) | |
tree | 6aee3f885cc9953facfac941678bcc7bdc056904 | |
parent | 675f3ead4193529de225cbb15dad3f9ed418f456 (diff) | |
download | rails-7c8f73d1bdf80b2c2561d02623db90f3aaad904a.tar.gz rails-7c8f73d1bdf80b2c2561d02623db90f3aaad904a.tar.bz2 rails-7c8f73d1bdf80b2c2561d02623db90f3aaad904a.zip |
Added TODO for evaling init.rb in context of Engine
-rw-r--r-- | railties/lib/rails/plugin.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 8d5132a5ca..4dab1c0b53 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -78,6 +78,8 @@ module Rails ActiveSupport::Deprecation.warn "Use toplevel init.rb; rails/init.rb is deprecated: #{initrb}" end 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(initrb), binding, initrb) end end |