summaryrefslogtreecommitdiffstats
path: root/app/views/journals
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/views/journals
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/views/journals')
-rw-r--r--app/views/journals/index.builder2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/journals/index.builder b/app/views/journals/index.builder
index 26a067f6c..7682a3fa5 100644
--- a/app/views/journals/index.builder
+++ b/app/views/journals/index.builder
@@ -18,7 +18,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.updated change.created_on.xmlschema
xml.author do
xml.name change.user.name
- xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail
+ xml.email(change.user.mail) if change.user.is_a?(User) && change.user.mail.present? && !change.user.pref.hide_mail
end
xml.content "type" => "html" do
xml.text! '<ul>'