diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-08 01:07:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 07:07:36 +0100 |
commit | f68bb52556fe90d7adad8db9ba8b801a22281f30 (patch) | |
tree | bbf7e121bf50760cec93afacff695f160a7f16d2 /app/models | |
parent | 8c1b65c7ddb9d49cb33c15c9a92dbfefebe868c6 (diff) |
Apply Rubocop Style/NegatedIfElseCondition (#23451)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 2 |
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! |