From 7c8f73d1bdf80b2c2561d02623db90f3aaad904a Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 24 Jun 2010 10:46:33 +0200 Subject: Added TODO for evaling init.rb in context of Engine --- railties/lib/rails/plugin.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3