Sha256: 7eadafd39a604ad3eea326c9ba4fca01e802ef957eb46699690eef4804f138c3
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
## # Shipment Item 是装运项。 class Unidom::Shipment::ShipmentItem < Unidom::Shipment::ApplicationRecord self.table_name = 'unidom_shipment_items' include Unidom::Common::Concerns::ModelExtension validates :quantity, presence: true, numericality: { greater_than_or_equal_to: 0 } belongs_to :shipment, class_name: 'Unidom::Shipment::Shipment' belongs_to :shipped, polymorphic: true has_many :package_items, class_name: 'Unidom::Shipment::ShipmentPackageItem' end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Shipment::ShipmentItem'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-shipment-0.7 | app/models/unidom/shipment/shipment_item.rb |
unidom-shipment-0.6.2 | app/models/unidom/shipment/shipment_item.rb |