Sha256: abcfbe288e09253e639d58c39ef60ff98d6466a59fcf7319efac96eb732455f0

Contents?: true

Size: 577 Bytes

Versions: 3

Compression:

Stored size: 577 Bytes

Contents

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

  belongs_to :inv_entry_from, :class_name => "InvEntry", :foreign_key => "inv_entry_id_from"  
  belongs_to :inv_entry_to, :class_name => "InvEntry", :foreign_key => "inv_entry_id_to"
  
  belongs_to :from_role, :class_name => "InvEntryRoleType", :foreign_key => "role_type_id_from"
  belongs_to :to_role,   :class_name => "InvEntryRoleType", :foreign_key => "role_type_id_to"  
  
  belongs_to :inv_entry_reln_type
  
  alias :from_item :inv_entry_from
  alias :to_item :inv_entry_to  
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
erp_inventory-4.2.0 app/models/inv_entry_reln.rb
erp_inventory-4.0.0 app/models/inv_entry_reln.rb
erp_inventory-3.1.0 app/models/inv_entry_reln.rb