diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-01 14:46:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-01 14:46:15 +0000 |
commit | f1b1c2f4712e089d9a00310f24d54c672f707235 (patch) | |
tree | f2a3cd2926608de93a064ff74e4fdbc5b5d26f64 /config/initializers | |
parent | ba6ace46d755fa5f26fe590d9e086bb762df4652 (diff) | |
download | redmine-f1b1c2f4712e089d9a00310f24d54c672f707235.tar.gz redmine-f1b1c2f4712e089d9a00310f24d54c672f707235.zip |
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
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/10-patches.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 9af59563e..cc6113d48 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -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 |