about summary refs log tree commit diff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-08 01:07:36 -0500
committerGitHub <noreply@github.com>2023-02-08 07:07:36 +0100
commitf68bb52556fe90d7adad8db9ba8b801a22281f30 (patch)
treebbf7e121bf50760cec93afacff695f160a7f16d2 /app/models/user.rb
parent8c1b65c7ddb9d49cb33c15c9a92dbfefebe868c6 (diff)
Apply Rubocop Style/NegatedIfElseCondition (#23451)
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index d40044da3..c767f8984 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -265,7 +265,7 @@ class User < ApplicationRecord
   end
 
   def inactive_message
-    !approved? ? :pending : super
+    approved? ? super : :pending
   end
 
   def approve!