1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-05 16:43:25 +00:00

Fix Subclasses must implement a find_templates(name, prefix, partial, details, locals = []) method (#29914).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20883 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2021-04-01 14:46:15 +00:00
parent ba6ace46d7
commit f1b1c2f471

View File

@ -53,12 +53,14 @@ module ActionView
class Resolver
def find_all(name, prefix=nil, partial=false, details={}, key=nil, locals=[])
locals = locals.map(&:to_s).sort!.freeze
cached(key, [name, prefix, partial], details, locals) do
if (details[:formats] & [:xml, :json]).any?
details = details.dup
details[:formats] = details[:formats].dup + [:api]
end
find_templates(name, prefix, partial, details)
_find_all(name, prefix, partial, details, key, locals)
end
end
end