mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added TODO for evaling init.rb in context of Engine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user