Sha256: 6f7ddbdb37d198f53622dafe3fabe70647d61f723a36d968ad2aa936f2f5d8db

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

module Sis
  module Core
    class StudentDocument < ApplicationRecord
      has_one_attached :file
      belongs_to :document_type, optional: true
      belongs_to :student

      delegate(:code, to: :document_type, prefix: true, allow_nil: true)
      delegate(:name, to: :document_type, prefix: true)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sis_core-1.0.20 app/models/sis/core/student_document.rb
sis_core-1.0.19 app/models/sis/core/student_document.rb
sis_core-1.0.18 app/models/sis/core/student_document.rb
sis_core-1.0.17 app/models/sis/core/student_document.rb