aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 7bfe4fa2bf..47320883ac 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -259,9 +259,8 @@ module ActionDispatch
named_routes.install(destinations, regenerate_code)
end
- # ROUTES TODO: Revisit the name of these methods
- def url_helpers
- @url_helpers ||= begin
+ def url_for
+ @url_for ||= begin
router = self
Module.new do
extend ActiveSupport::Concern
@@ -272,13 +271,13 @@ module ActionDispatch
end
end
- def named_url_helpers
- @named_url_helpers ||= begin
+ def url_helpers
+ @url_helpers ||= begin
router = self
Module.new do
extend ActiveSupport::Concern
- include router.url_helpers
+ include router.url_for
# ROUTES TODO: install_helpers isn't great... can we make a module with the stuff that
# we can include?