Sha256: a9579a1cb0e5863e4b03f2a9c1835f222b14f378e97d793f789e200cab1402e6

Contents?: true

Size: 583 Bytes

Versions: 4

Compression:

Stored size: 583 Bytes

Contents

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

  belongs_to :prod_type_from, :class_name => "ProductType", :foreign_key => "prod_type_id_from"
  belongs_to :prod_type_to, :class_name => "ProductType", :foreign_key => "prod_type_id_to"
  
  belongs_to :from_role, :class_name => "ProdTypeRoleType", :foreign_key => "role_type_id_from"
  belongs_to :to_role,   :class_name => "ProdTypeRoleType", :foreign_key => "role_type_id_to"  
  
  belongs_to :prod_type_reln_type
  
  alias :from_item :prod_type_from
  alias :to_item :prod_type_to 
  
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

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