diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2011-04-25 14:56:58 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2011-04-25 14:56:58 +0200 |
commit | 820c0feda33495cfe68add8c3f25adc515ab3e04 (patch) | |
tree | b4f5d1c6dd59f4a71bb6ae4dbc2c304fd2e48915 /railties | |
parent | e38b4436a57c43d2db78a4c8a647a09fe0e5d2c5 (diff) | |
download | rails-820c0feda33495cfe68add8c3f25adc515ab3e04.tar.gz rails-820c0feda33495cfe68add8c3f25adc515ab3e04.tar.bz2 rails-820c0feda33495cfe68add8c3f25adc515ab3e04.zip |
Explicitly define main_app proxy
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application/finisher.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb index bf865ce466..028c8814c4 100644 --- a/railties/lib/rails/application/finisher.rb +++ b/railties/lib/rails/application/finisher.rb @@ -41,6 +41,10 @@ module Rails ActionDispatch::Reloader.prepare! end + initializer :define_main_app_helper do |app| + app.routes.define_mounted_helper(:main_app) + end + initializer :eager_load! do if config.cache_classes && !$rails_rake_task ActiveSupport.run_load_hooks(:before_eager_load, self) |