Skip to content
Browse files

Explicitly define main_app proxy

  • Loading branch information...
1 parent e38b443 commit 820c0feda33495cfe68add8c3f25adc515ab3e04 @drogus drogus committed
View
3 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -275,8 +275,7 @@ def install_helpers(destinations = [ActionController::Base, ActionView::Base], r
module MountedHelpers
end
- def mounted_helpers(name = :main_app)
- define_mounted_helper(name) if name
+ def mounted_helpers
MountedHelpers
end
View
4 railties/lib/rails/application/finisher.rb
@@ -41,6 +41,10 @@ module Finisher
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)

0 comments on commit 820c0fe

Please sign in to comment.
Something went wrong with that request. Please try again.