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 /app/models/mail_handler.rb | |
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 'app/models/mail_handler.rb')
-rw-r--r-- | app/models/mail_handler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 2cbc8a5c7..b6858d96a 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -398,7 +398,7 @@ class MailHandler < ActionMailer::Base if options.key?(:override) options[:override] else - (handler_options[:allow_override] & [attr.to_s.downcase.gsub(/\s+/, '_'), 'all']).present? + handler_options[:allow_override].intersect?([attr.to_s.downcase.gsub(/\s+/, '_'), 'all']) end if override && (v = extract_keyword!(cleaned_up_text_body, attr, options[:format])) v |