From 5b1fb525b81583c874991991ba00ed946719974f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 27 Jun 2015 08:04:21 +0000 Subject: [PATCH] Error when using views/issues/index.api.rsb in a plugin (#13924). git-svn-id: http://svn.redmine.org/redmine/trunk@14375 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/initializers/10-patches.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 5c2f913b0..dae04fc98 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -43,7 +43,7 @@ module ActionView class Resolver def find_all(name, prefix=nil, partial=false, details={}, key=nil, locals=[]) cached(key, [name, prefix, partial], details, locals) do - if details[:formats] & [:xml, :json] + if (details[:formats] & [:xml, :json]).any? details = details.dup details[:formats] = details[:formats].dup + [:api] end -- 2.39.5