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 /lib/redmine/acts/mentionable.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 'lib/redmine/acts/mentionable.rb')
-rw-r--r-- | lib/redmine/acts/mentionable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/acts/mentionable.rb b/lib/redmine/acts/mentionable.rb index 24adf04b3..f8332637e 100644 --- a/lib/redmine/acts/mentionable.rb +++ b/lib/redmine/acts/mentionable.rb @@ -57,7 +57,7 @@ module Redmine mentionable_attrs = self.mentionable_attributes saved_mentionable_attrs = self.saved_changes.select{|a| mentionable_attrs.include?(a)} - saved_mentionable_attrs.each do |key, attr| + saved_mentionable_attrs.each_value do |attr| old_value, new_value = attr get_mentioned_users(old_value, new_value) end |