Sha256: 6eb93b59a6cd743503713aaa43c88f2d8c63203ef63418eaa4e0742f7627f925
Contents?: true
Size: 543 Bytes
Versions: 4
Compression:
Stored size: 543 Bytes
Contents
class ProductInstance < ActiveRecord::Base 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
4 entries across 4 versions & 1 rubygems