summaryrefslogtreecommitdiffstats
path: root/app/models/changeset.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-10-28 07:50:11 +0000
committerGo MAEDA <maeda@farend.jp>2022-10-28 07:50:11 +0000
commitee1476f802d34ee31d1e1c990165165338867ff6 (patch)
treed7848fddb34b876dbe05864d0b04ec98d5db8893 /app/models/changeset.rb
parent6a55e94cd2ac8ed2462aa8b80ab9a96a8d43e25b (diff)
downloadredmine-ee1476f802d34ee31d1e1c990165165338867ff6.tar.gz
redmine-ee1476f802d34ee31d1e1c990165165338867ff6.zip
Fix RuboCop offense Rails/Pluck (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@21928 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r--app/models/changeset.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index 4e04e4965..b4501b19e 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -129,7 +129,7 @@ class Changeset < ActiveRecord::Base
ref_keywords_any = ref_keywords.delete('*')
# keywords used to fix issues
- fix_keywords = Setting.commit_update_keywords_array.map {|r| r['keywords']}.flatten.compact
+ fix_keywords = Setting.commit_update_keywords_array.pluck('keywords').flatten.compact
kw_regexp = (ref_keywords + fix_keywords).collect{|kw| Regexp.escape(kw)}.join("|")
referenced_issues = []