mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Tweaks to integration tests and url rewriter for further compatibility with new routes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -73,11 +73,11 @@ module ActionController
|
||||
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 @@ module ActionController
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user