Hi ~
I have the following database design
class Subscription < ActiveRecord::Base belongs_to :user, :class_name => "User", :foreign_key => 'subscriber_user_id' belongs_to :user, :class_name => "User", :foreign_key => 'supplier_user_id' end
and there existing a user table. How can i access the subscriber and supplier in the User object? Because user.subscription may has ambiguous for accessing supplier and subscriber
Thank ~ Patrick