diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-20 08:13:48 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-20 08:13:48 +0000 |
commit | c8640d7ffc28b1632106e2d2bc33f5d792d644fc (patch) | |
tree | 221c5cd85f75561695faf6c4d795d0263f2a5cc3 /app/helpers/attachments_helper.rb | |
parent | d9ef2d191cdb3d04508530275bc99c3710820fcb (diff) | |
download | redmine-c8640d7ffc28b1632106e2d2bc33f5d792d644fc.tar.gz redmine-c8640d7ffc28b1632106e2d2bc33f5d792d644fc.zip |
Fix RuboCop offense Style/HashEachMethods (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22532 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/attachments_helper.rb')
-rw-r--r-- | app/helpers/attachments_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb index a9e147a3f..fc2cca351 100644 --- a/app/helpers/attachments_helper.rb +++ b/app/helpers/attachments_helper.rb @@ -70,7 +70,7 @@ module AttachmentsHelper def render_api_attachment(attachment, api, options={}) api.attachment do render_api_attachment_attributes(attachment, api) - options.each {|key, value| eval("api.#{key} value")} + options.each_key {|key| eval("api.#{key} value")} end end |