Apply Rubocop Style/NegatedIfElseCondition (#23451)
This commit is contained in:
@ -265,7 +265,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def inactive_message
|
||||
!approved? ? :pending : super
|
||||
approved? ? super : :pending
|
||||
end
|
||||
|
||||
def approve!
|
||||
|
Reference in New Issue
Block a user