提交 ef5317f7 编写于 作者: J Jamis Buck

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
上级 ba4d4ad4
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册