aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 3ffa4b4bea..fb49bc153c 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -315,9 +315,10 @@ module ActionDispatch
include UrlFor
@_routes = routes
- class << self
- delegate :url_for, :to => '@_routes'
+ def self.url_for(options)
+ @_routes.url_for options
end
+
extend routes.named_routes.module
# ROUTES TODO: install_helpers isn't great... can we make a module with the stuff that