Sha256: 5293c67fefa7546c65e654bc1920d5de8734f17af92781c15dfa81e97bd2f0b4

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

module Mks
  module Edm
    class EquipmentCategory < ApplicationRecord
      belongs_to :equipment_type

      validates :code, :name, uniqueness: true, presence: true

      delegate(:id, to: :equipment_type, prefix: true)
      delegate(:name, to: :equipment_type, prefix: true)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mks_edm-1.0.5 app/models/mks/edm/equipment_category.rb
mks_edm-1.0.4 app/models/mks/edm/equipment_category.rb
mks_edm-1.0.2 app/models/mks/edm/equipment_category.rb
mks_edm-1.0.1 app/models/mks/edm/equipment_category.rb