diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-27 08:04:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-27 08:04:21 +0000 |
commit | 5b1fb525b81583c874991991ba00ed946719974f (patch) | |
tree | bb39fca063b06363978ec3f7c3be9bee2957a27a /config/initializers | |
parent | b3aaabcb3cca85efba3caf7fc8c7b1cace041e25 (diff) | |
download | redmine-5b1fb525b81583c874991991ba00ed946719974f.tar.gz redmine-5b1fb525b81583c874991991ba00ed946719974f.zip |
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
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/10-patches.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |