diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-19 21:34:51 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-19 21:34:51 -0200 |
commit | 9a476b8cd6724699027eb00ec7ffa8b232d1b734 (patch) | |
tree | 7296224640c3a88cab40f67a0e10ef917c268df6 /actionview | |
parent | da2987afc9b1a03899304c0ea24a1dec395d39b8 (diff) | |
parent | e002a68a4ec19c1d4278e9b523283f59fbe56be1 (diff) | |
download | rails-9a476b8cd6724699027eb00ec7ffa8b232d1b734.tar.gz rails-9a476b8cd6724699027eb00ec7ffa8b232d1b734.tar.bz2 rails-9a476b8cd6724699027eb00ec7ffa8b232d1b734.zip |
Merge pull request #19007 from evanphx/route_proxy
Cache url_helpers instead of creating each time
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/activerecord/polymorphic_routes_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/activerecord/polymorphic_routes_test.rb b/actionview/test/activerecord/polymorphic_routes_test.rb index 8e1ed2776d..6b51775cf3 100644 --- a/actionview/test/activerecord/polymorphic_routes_test.rb +++ b/actionview/test/activerecord/polymorphic_routes_test.rb @@ -113,7 +113,7 @@ class PolymorphicRoutesTest < ActionController::TestCase def test_passing_routes_proxy with_namespaced_routes(:blog) do - proxy = ActionDispatch::Routing::RoutesProxy.new(_routes, self) + proxy = ActionDispatch::Routing::RoutesProxy.new(_routes, self, _routes.url_helpers) @blog_post.save assert_url "http://example.com/posts/#{@blog_post.id}", [proxy, @blog_post] end |