Sha256: 69dfdd51496c7efccf10ef442e87766ff47935aeb5d103c1c29f9e8083910cb4
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
module Unidom::Inventory::Concerns::AsInventoryItem extend ActiveSupport::Concern included do |includer| belongs_to :stored, polymorphic: true belongs_to :store, polymorphic: true belongs_to :lot, class_name: 'Unidom::Inventory::Lot' has_many :pick_items, class_name: 'Unidom::Inventory::PickItem', as: :inventory_item has_many :variances, class_name: 'Unidom::Inventory::InventoryItemVariance', as: :inventory_item end module ClassMethods end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-inventory-0.6 | app/models/unidom/inventory/concerns/as_inventory_item.rb |