diff options
author | Go MAEDA <maeda@farend.jp> | 2024-08-20 23:40:58 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-08-20 23:40:58 +0000 |
commit | c069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2 (patch) | |
tree | d0bc8c17978db11a5a5526196b9c673132d33c60 /config | |
parent | 86d262d5c57fc67250d254839f9400bfe853a9c1 (diff) | |
download | redmine-c069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2.tar.gz redmine-c069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2.zip |
Use Array#intersect? introduced in Ruby 3.1 (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-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 716330641..04081c333 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -96,7 +96,7 @@ end module ActionView LookupContext.prepend(Module.new do def formats=(values) - if (Array(values) & [:xml, :json]).any? + if Array(values).intersect?([:xml, :json]) values << :api end super |