Permalink
Browse files

Added TODO for evaling init.rb in context of Engine

  • Loading branch information...
1 parent 675f3ea commit 7c8f73d1bdf80b2c2561d02623db90f3aaad904a @drogus drogus committed Jun 24, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/lib/rails/plugin.rb
@@ -78,6 +78,8 @@ def config
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

0 comments on commit 7c8f73d

Please sign in to comment.