From fb7b36e6551f3de95f05d1a38c7b4892525d1770 Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Tue, 26 Jan 2016 21:01:58 -0500 Subject: [PATCH] Add outside_app_allowed arg to find_templates A backport of #23247 to 4-1-stable. --- actionview/lib/action_view/template/resolver.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionview/lib/action_view/template/resolver.rb b/actionview/lib/action_view/template/resolver.rb index 8d8a37e2893..0f7adb4c63e 100644 --- a/actionview/lib/action_view/template/resolver.rb +++ b/actionview/lib/action_view/template/resolver.rb @@ -129,8 +129,8 @@ module ActionView # This is what child classes implement. No defaults are needed # because Resolver guarantees that the arguments are present and # normalized. - def find_templates(name, prefix, partial, details) - raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details) method" + def find_templates(name, prefix, partial, details, outside_app_allowed = false) + raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details, outside_app_allowed) method" end # Helpers that builds a path. Useful for building virtual paths.