Skip to content

Commit

Permalink
Tweaks to integration tests and url rewriter for further compatibilit…
Browse files Browse the repository at this point in the history
…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 ef5317f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/integration.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/url_rewriter.rb
Expand Up @@ -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.