Sha256: 150966e242da984c91bfc3eb268d0d8d2f8465907a875ed5d1cf49cac9596826
Contents?: true
Size: 439 Bytes
Versions: 9
Compression:
Stored size: 439 Bytes
Contents
module Logistics module Core class DocumentType < ApplicationRecord include Lookupable validates :code, :name, presence: true, allow_blank: false validates :code, :name, uniqueness: true belongs_to :document_type_category belongs_to :document_type_origin delegate(:name, to: :document_type_category, prefix: true) delegate(:name, to: :document_type_origin, prefix: true) end end end
Version data entries
9 entries across 9 versions & 1 rubygems