Permalink
Browse files

Tweaks to integration tests and url rewriter for further compatibilit…

…y with new routes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jamis committed Jun 1, 2006
1 parent ba4d4ad commit ef5317f74f83d73484e32a69079253d406b61b42
@@ -73,11 +73,11 @@ def reset!
unless @named_routes_configured
# install the named routes in this session instance.
klass = class<<self; self; end
- Routing::NamedRoutes.install(klass)
+ Routing::Routes.named_routes.install(klass)
# the helpers are made protected by default--we make them public for
# easier access during testing and troubleshooting.
- klass.send(:public, *Routing::NamedRoutes::Helpers)
+ klass.send(:public, *Routing::Routes.named_routes.helpers)
@named_routes_configured = true
end
end
@@ -43,7 +43,7 @@ def rewrite_path(options)
RESERVED_OPTIONS.each {|k| options.delete k}
# Generates the query string, too
- Routing::Routes.generate(options, @request.parameters)
+ Routing::Routes.generate(options, @request.symbolized_path_parameters)
end
end
end

0 comments on commit ef5317f

Please sign in to comment.