search for: support_employee

Displaying 1 result from an estimated 1 matches for "support_employee".

2006 Mar 31
3
Complex Through Statement
.... Therefore, my Employee class looks like this: class Employee < ActiveRecord::Base has_many :enrollment_merchants, :class_name => "Merchant", :foreign_key => :enrollment_employee_id has_many :support_merchants, :class_name => "Merchant", :foreign_key => :support_employee_id end And my Merchant class looks like this: class Merchant < ActiveRecord::Base belongs_to :enrollment_employee, :class_name => "Employee", :foreign_key => "enrollment_employee_id" belongs_to :support_employee, :class_name => "Employee", :foreign...