diff options
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 42d6ee40db..444c36a72b 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -435,16 +435,16 @@ module ActionDispatch def url_options; {}; end end - route_methods = routes.named_routes.url_helpers_module + url_helpers = routes.named_routes.url_helpers_module # Make named_routes available in the module singleton # as well, so one can do: # Rails.application.routes.url_helpers.posts_path - extend route_methods + extend url_helpers # Any class that includes this module will get all # named routes... - include route_methods + include url_helpers if include_path_helpers path_helpers = routes.named_routes.path_helpers_module |