Sha256: 0451d5dddc72691da66cd0a06c991b8ada7845fe327f83987608ab8583d0990e

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

module Sis
  module Core
    class CreditHourRate < ApplicationRecord
      belongs_to :programme_level
      belongs_to :currency

      validates :rate, presence: true

      delegate(:name, to: :programme_level, prefix: true, allow_nil: false)
      delegate(:name, to: :currency, prefix: true, allow_nil: false)
      delegate(:code, to: :currency, prefix: true, allow_nil: false)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sis_core-1.0.20 app/models/sis/core/credit_hour_rate.rb
sis_core-1.0.19 app/models/sis/core/credit_hour_rate.rb
sis_core-1.0.18 app/models/sis/core/credit_hour_rate.rb
sis_core-1.0.17 app/models/sis/core/credit_hour_rate.rb
sis_core-1.0.16 app/models/sis/core/credit_hour_rate.rb
sis_core-1.0.15 app/models/sis/core/credit_hour_rate.rb