Sha256: b695e2b4c653cac5b3cda8ac016a82528ffb15837cbd3ad35773659800e022d2
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
class ProductInstance < ActiveRecord::Base attr_protected :created_at, :updated_at acts_as_nested_set include ErpTechSvcs::Utils::DefaultNestedSetMethods belongs_to :product_type belongs_to :product_instance_status_type belongs_to :product_instance_record, :polymorphic => true belongs_to :prod_availability_status_type alias :status :product_instance_status_type def prod_instance_relns_to ProdInstanceReln.where('prod_instance_id_to = ?',id) end def prod_instance_relns_from ProdInstanceReln.where('prod_instance_id_from = ?',id) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
erp_products-4.0.0 | app/models/product_instance.rb |
erp_products-3.1.1 | app/models/product_instance.rb |
erp_products-3.1.0 | app/models/product_instance.rb |