Apply Rubocop Style/NegatedIfElseCondition (#23451)
This commit is contained in:
parent
8c1b65c7dd
commit
f68bb52556
5 changed files with 12 additions and 12 deletions
|
@ -265,7 +265,7 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def inactive_message
|
||||
!approved? ? :pending : super
|
||||
approved? ? super : :pending
|
||||
end
|
||||
|
||||
def approve!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue