Class: ExamAuthorization
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ExamAuthorization
- Defined in:
- app/models/exam_authorization.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
active_between, aggregate_of, all_except, defaults, #delete, #destroy!, enum_prefixed_translations_for, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, teaser_on, #update_and_notify!, update_or_create!, whitelist_attributes, with_pg_retry, with_temporary_token
Methods included from WithPgLock
Instance Method Details
#start! ⇒ Object
6 7 8 |
# File 'app/models/exam_authorization.rb', line 6 def start! update!(started: true, started_at: Time.current) unless started? end |