Class: ExamAuthorization

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

Instance Method Summary collapse

Methods inherited from ApplicationRecord

aggregate_of, all_except, defaults, #delete, #destroy!, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, #update_and_notify!, update_or_create!, whitelist_attributes

Instance Method Details

#start!Object



6
7
8
# File 'app/models/exam_authorization.rb', line 6

def start!
  update!(started: true, started_at: Time.now) unless started?
end