]> source.dussan.org Git - redmine.git/commitdiff
Fix Subclasses must implement a find_templates(name, prefix, partial, details, locals...
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 14:46:15 +0000 (14:46 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 14:46:15 +0000 (14:46 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@20883 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/initializers/10-patches.rb

index 9af59563e098cdb54297079a421bdccb1ab9ccd1..cc6113d48f449656315a05f7978f3dd9f94b84c1 100644 (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