diff options
author | Go MAEDA <maeda@farend.jp> | 2024-08-21 00:46:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-08-21 00:46:15 +0000 |
commit | 93645a279e68b5f23d13c340d96ede3f65aff635 (patch) | |
tree | 99c47c51197d9b285fe4b05d073fd55208df54e5 /app/helpers/custom_fields_helper.rb | |
parent | c069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2 (diff) | |
download | redmine-93645a279e68b5f23d13c340d96ede3f65aff635.tar.gz redmine-93645a279e68b5f23d13c340d96ede3f65aff635.zip |
Use anonymous block forwarding introduced in Ruby 3.1 (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22973 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/custom_fields_helper.rb')
-rw-r--r-- | app/helpers/custom_fields_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index f59a8f4cd..82b78cdcb 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -178,7 +178,7 @@ module CustomFieldsHelper # Yields the given block for each custom field value of object that should be # displayed, with the custom field and the formatted value as arguments - def render_custom_field_values(object, &block) + def render_custom_field_values(object, &) object.visible_custom_field_values.each do |custom_value| formatted = show_value(custom_value) if formatted.present? |