summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-01-11 13:36:36 +0000
committerGo MAEDA <maeda@farend.jp>2023-01-11 13:36:36 +0000
commit7cf89bf44e8e0a1a48714781d764b5b1b74aaa27 (patch)
treef0e0cddddb23bd9f65ad21cdbcf2cf8dad15b49e /app/helpers/issues_helper.rb
parente010d90207d23fa47ae9d262433ac22436fa8b1a (diff)
downloadredmine-7cf89bf44e8e0a1a48714781d764b5b1b74aaa27.tar.gz
redmine-7cf89bf44e8e0a1a48714781d764b5b1b74aaa27.zip
Disable RuboCop offense Performance/Sum in IssueFieldsRows#to_html (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22034 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 98fe05309..ed041d145 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -343,9 +343,11 @@ module IssuesHelper
end
def to_html
+ # rubocop:disable Performance/Sum
content =
content_tag('div', @left.reduce(&:+), :class => 'splitcontentleft') +
content_tag('div', @right.reduce(&:+), :class => 'splitcontentleft')
+ # rubocop:enable Performance/Sum
content_tag('div', content, :class => 'splitcontent')
end