summaryrefslogtreecommitdiffstats
path: root/app/helpers
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/helpers
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/helpers')
-rw-r--r--app/helpers/versions_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb
index ffaa54675..ef4bb9d04 100644
--- a/app/helpers/versions_helper.rb
+++ b/app/helpers/versions_helper.rb
@@ -75,7 +75,7 @@ module VersionsHelper
sorted_keys.collect do |k|
{:group => k, :total => h[k][0], :open => h[k][1], :closed => (h[k][0] - h[k][1])}
end
- max = counts.collect {|c| c[:total]}.max
+ max = counts.pluck(:total).max
render :partial => 'issue_counts', :locals => {:version => version, :criteria => criteria, :counts => counts, :max => max}
end