Sha256: 4314be2dbeeb45824081feae67f1b05cea204609dc044c0cc099af9bbf5a6c8a

Contents?: true

Size: 229 Bytes

Versions: 6

Compression:

Stored size: 229 Bytes

Contents

module Sis
  module Core
    class Semester < ApplicationRecord
      belongs_to :academic_year

      validates :name, presence: true

      delegate(:label, to: :academic_year, prefix: true, allow_nil: false)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sis_core-1.0.12 app/models/sis/core/semester.rb
sis_core-1.0.11 app/models/sis/core/semester.rb
sis_core-1.0.10 app/models/sis/core/semester.rb
sis_core-1.0.9 app/models/sis/core/semester.rb
sis_core-1.0.8 app/models/sis/core/semester.rb
sis_core-1.0.7 app/models/sis/core/semester.rb