aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2017-02-21 20:00:31 +0000
committerGitHub <noreply@github.com>2017-02-21 20:00:31 +0000
commitf3d729f75363136f659f2cb78165ca5c899ecfe7 (patch)
treead405ccb51b3982b6f342553412ac8c412d52615 /actionview
parent25f5d0913dbc627ab18bd16f95a757b1d083b9e3 (diff)
parentde24b8cb9c38a02b521d762d4b8eef11f6a78978 (diff)
downloadrails-f3d729f75363136f659f2cb78165ca5c899ecfe7.tar.gz
rails-f3d729f75363136f659f2cb78165ca5c899ecfe7.tar.bz2
rails-f3d729f75363136f659f2cb78165ca5c899ecfe7.zip
Merge pull request #23138 from rails/custom-url-helpers-and-polymorphic-urls
Implement custom url helpers and polymorphic mapping
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/test_case.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionview/lib/action_view/test_case.rb b/actionview/lib/action_view/test_case.rb
index 2b981caa65..ae4fec4337 100644
--- a/actionview/lib/action_view/test_case.rb
+++ b/actionview/lib/action_view/test_case.rb
@@ -124,6 +124,10 @@ module ActionView
@_rendered_views ||= RenderedViewsCollection.new
end
+ def _routes
+ @controller._routes if @controller.respond_to?(:_routes)
+ end
+
# Need to experiment if this priority is the best one: rendered => output_buffer
class RenderedViewsCollection
def initialize
@@ -258,10 +262,6 @@ module ActionView
end]
end
- def _routes
- @controller._routes if @controller.respond_to?(:_routes)
- end
-
def method_missing(selector, *args)
begin
routes = @controller.respond_to?(:_routes) && @controller._routes