Skip to content

Commit fb7b36e

Browse files
maclover7rafaelfranca
authored andcommitted
Add outside_app_allowed arg to find_templates
A backport of rails#23247 to 4-1-stable.
1 parent 1db1f82 commit fb7b36e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionview/lib/action_view/template/resolver.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ def find_all_anywhere(name, prefix, partial=false, details={}, key=nil, locals=[
129129
# This is what child classes implement. No defaults are needed
130130
# because Resolver guarantees that the arguments are present and
131131
# normalized.
132-
def find_templates(name, prefix, partial, details)
133-
raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details) method"
132+
def find_templates(name, prefix, partial, details, outside_app_allowed = false)
133+
raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details, outside_app_allowed) method"
134134
end
135135

136136
# Helpers that builds a path. Useful for building virtual paths.

0 commit comments

Comments
 (0)