Add outside_app_allowed arg to find_templates

A backport of #23247 to 4-1-stable.
This commit is contained in:
Jon Moss 2016-01-26 21:01:58 -05:00 committed by Rafael Mendonça França
parent 1db1f82670
commit fb7b36e655
1 changed files with 2 additions and 2 deletions

View File

@ -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.