Sha256: 56a5c63ad2580eb8ba89e621cf8f74174325eb8c98e78d4a364a4bfed343ce6e

Contents?: true

Size: 177 Bytes

Versions: 18

Compression:

Stored size: 177 Bytes

Contents

class ExamAuthorization < ApplicationRecord

  belongs_to :user
  belongs_to :exam

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

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-domain-9.23.0 app/models/exam_authorization.rb
mumuki-domain-9.22.1 app/models/exam_authorization.rb
mumuki-domain-9.22.0 app/models/exam_authorization.rb
mumuki-domain-9.21.0 app/models/exam_authorization.rb
mumuki-domain-9.20.0 app/models/exam_authorization.rb
mumuki-domain-9.19.0 app/models/exam_authorization.rb
mumuki-domain-9.18.0 app/models/exam_authorization.rb
mumuki-domain-9.17.0 app/models/exam_authorization.rb
mumuki-domain-9.16.0 app/models/exam_authorization.rb
mumuki-domain-9.15.0 app/models/exam_authorization.rb
mumuki-domain-9.14.1 app/models/exam_authorization.rb
mumuki-domain-9.14.0 app/models/exam_authorization.rb
mumuki-domain-9.13.1 app/models/exam_authorization.rb
mumuki-domain-9.13.0 app/models/exam_authorization.rb
mumuki-domain-9.12.0 app/models/exam_authorization.rb
mumuki-domain-9.11.0 app/models/exam_authorization.rb
mumuki-domain-9.10.0 app/models/exam_authorization.rb
mumuki-domain-9.9.0 app/models/exam_authorization.rb