Consider a tree. Not a perfect example since every branch only has
one parent...but you get the idea.
What I want is the following:
I think the problem is not being able to change the method name
without changing the attribute it points to. Here is my idea so far.
Thanx for looking!
class Branch < ActiveRecord::Base
has_many :parents, :through => :relations
has_many :children, :through => :relations
class Relation < ActiveRecord::Base
belongs_to :branch, :foreign_key => "parent_id"
belongs_to :branch, :foreign_key => "child_id"