Class: Maquina::Invitation
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Maquina::Invitation
- Defined in:
- app/models/maquina/invitation.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
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
7 8 9 |
# File 'app/models/maquina/invitation.rb', line 7 def accepted? accepted_at.present? end |