Class: Maquina::Invitation

Inherits:
ApplicationRecord show all
Defined in:
app/models/maquina/invitation.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

searchable?

Instance Method Details

#accept!Object



11
12
13
# File 'app/models/maquina/invitation.rb', line 11

def accept!
  update!(accepted_at: Time.zone.now)
end

#accepted?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/models/maquina/invitation.rb', line 7

def accepted?
  accepted_at.present?
end