From 32d2b1c42f76c07e13bcf748b2071a29cf350606 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 25 Mar 2023 01:32:23 +0000 Subject: Fix RuboCop offense Style/InverseMethods: Use `present?` instead of inverting `blank?` (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@22152 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/custom_fields_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers') diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index 13974daff..435634df8 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -155,7 +155,7 @@ module CustomFieldsHelper def custom_field_value_tag(value) attr_value = show_value(value) - if !attr_value.blank? && value.custom_field.full_text_formatting? + if attr_value.present? && value.custom_field.full_text_formatting? content_tag('div', attr_value, :class => 'wiki') else attr_value -- cgit v1.2.3