1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #27733 from kenta-s/add-missing-argument-to-find_templates

`find_templates` should be able to handle 5 arguments
This commit is contained in:
Andrew White 2017-01-19 17:20:58 +00:00 committed by GitHub
commit c64ee8ed53

View file

@ -164,8 +164,8 @@ module ActionView
# This is what child classes implement. No defaults are needed # This is what child classes implement. No defaults are needed
# because Resolver guarantees that the arguments are present and # because Resolver guarantees that the arguments are present and
# normalized. # normalized.
def find_templates(name, prefix, partial, details) def find_templates(name, prefix, partial, details, outside_app_allowed = false)
raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details) method" raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details, outside_app_allowed = false) method"
end end
# Helpers that builds a path. Useful for building virtual paths. # Helpers that builds a path. Useful for building virtual paths.