summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-03-25 01:32:23 +0000
committerGo MAEDA <maeda@farend.jp>2023-03-25 01:32:23 +0000
commit32d2b1c42f76c07e13bcf748b2071a29cf350606 (patch)
treea178f5208bdb7f5e9a43dca6cdbc5ac144b59459 /app/helpers
parentf27de353381a45427b6e38b87c973902de92484f (diff)
downloadredmine-32d2b1c42f76c07e13bcf748b2071a29cf350606.tar.gz
redmine-32d2b1c42f76c07e13bcf748b2071a29cf350606.zip
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
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/custom_fields_helper.rb2
1 files changed, 1 insertions, 1 deletions
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