diff options
author | Go MAEDA <maeda@farend.jp> | 2020-10-20 15:22:11 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-10-20 15:22:11 +0000 |
commit | 8d6507882622615b8e850f25d011c11b3980ac2e (patch) | |
tree | 6c0280d970ec176d836755533fc068f22466b71c /lib/redmine/export | |
parent | 84a4a4f8eda863750527a9254d0eddb1f0d63b83 (diff) | |
download | redmine-8d6507882622615b8e850f25d011c11b3980ac2e.tar.gz redmine-8d6507882622615b8e850f25d011c11b3980ac2e.zip |
Fix RuboCop offense Style/For (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@20153 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r-- | lib/redmine/export/pdf/issues_pdf_helper.rb | 4 | ||||
-rw-r--r-- | lib/redmine/export/pdf/wiki_pdf_helper.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/export/pdf/issues_pdf_helper.rb b/lib/redmine/export/pdf/issues_pdf_helper.rb index b49691695..c6ee5a18f 100644 --- a/lib/redmine/export/pdf/issues_pdf_helper.rb +++ b/lib/redmine/export/pdf/issues_pdf_helper.rb @@ -189,7 +189,7 @@ module Redmine pdf.SetFontStyle('B',9) pdf.RDMCell(190,5, l(:label_associated_revisions), "B") pdf.ln - for changeset in issue.changesets + issue.changesets.each do |changeset| pdf.SetFontStyle('B',8) csstr = "#{l(:label_revision)} #{changeset.format_identifier} - " csstr += format_time(changeset.committed_on) + " - " + changeset.author.to_s @@ -240,7 +240,7 @@ module Redmine pdf.SetFontStyle('B',9) pdf.RDMCell(190,5, l(:label_attachment_plural), "B") pdf.ln - for attachment in issue.attachments + issue.attachments.each do |attachment| pdf.SetFontStyle('',8) pdf.RDMCell(80,5, attachment.filename) pdf.RDMCell(20,5, number_to_human_size(attachment.filesize),0,0,"R") diff --git a/lib/redmine/export/pdf/wiki_pdf_helper.rb b/lib/redmine/export/pdf/wiki_pdf_helper.rb index e2f408fc4..cc4ee6a17 100644 --- a/lib/redmine/export/pdf/wiki_pdf_helper.rb +++ b/lib/redmine/export/pdf/wiki_pdf_helper.rb @@ -87,7 +87,7 @@ module Redmine pdf.SetFontStyle('B', 9) pdf.RDMCell(190, 5, l(:label_attachment_plural), "B") pdf.ln - for attachment in page.attachments + page.attachments.each do |attachment| pdf.SetFontStyle('', 8) pdf.RDMCell(80, 5, attachment.filename) pdf.RDMCell(20, 5, number_to_human_size(attachment.filesize), 0, 0, "R") |