Sha256: 4ea85c5ffd6fd6d2c3f1a570bc614ee0a782ba4700f1f3a4e36b558139104877

Contents?: true

Size: 627 Bytes

Versions: 4

Compression:

Stored size: 627 Bytes

Contents

class ProdInstanceReln < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  belongs_to :prod_instance_from, :class_name => "ProductInstance", :foreign_key => "prod_instance_id_from"  
  belongs_to :prod_instance_to, :class_name => "ProductInstance", :foreign_key => "prod_instance_id_to"
  
  belongs_to :from_role, :class_name => "ProdInstanceRoleType", :foreign_key => "role_type_id_from"
  belongs_to :to_role,   :class_name => "ProdInstanceRoleType", :foreign_key => "role_type_id_to"  
  
  belongs_to :prod_instance_reln_type
  
  alias :from_item :prod_instance_from
  alias :to_item :prod_instance_to

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
erp_products-4.2.0 app/models/prod_instance_reln.rb
erp_products-4.0.0 app/models/prod_instance_reln.rb
erp_products-3.1.1 app/models/prod_instance_reln.rb
erp_products-3.1.0 app/models/prod_instance_reln.rb