Class: User

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
lib/templates/user.rb

Instance Method Summary collapse

Instance Method Details

#is_pendingObject



12
13
14
15
# File 'lib/templates/user.rb', line 12

def is_pending
  owner = Account.find(self.).users.first
  true unless self.invitation_accepted_at || self == owner
end