forked from fixin.me/fixin.me
First part of portability checks
This commit is contained in:
@@ -11,7 +11,7 @@ class User < ApplicationRecord
|
||||
disabled: 0, # administratively disallowed to sign in
|
||||
}, default: :active
|
||||
|
||||
has_many :units, -> { ordered }, dependent: :destroy
|
||||
has_many :units, dependent: :destroy
|
||||
|
||||
def at_least(status)
|
||||
User.statuses[self.status] >= User.statuses[status]
|
||||
|
||||
Reference in New Issue
Block a user