Displaying 1 result from an estimated 1 matches for "companybranch".
Did you mean:
company_branch
2006 Mar 15
1
Through method problems with custom foreign_keys
..._primary_key "person_id"
has_many :contacts,
:foreign_key=>"person_person_id",
:class_name=>"Contact"
has_many :company_branches,
:through=>:contacts,
:foreign_key=>"com_branch_id"
end
class CompanyBranch < ActiveRecord::Base
set_primary_key "branch_id"
belongs_to :company,
:foreign_key=>"cmpny_company_id",
:class_name=>"Company"
has_many :contacts,
:foreign_key=>"com_branch_id",
:class...