Skip to content

Instantly share code, notes, and snippets.

@coffeeaddict
Created December 7, 2010 07:58
Show Gist options
  • Save coffeeaddict/731570 to your computer and use it in GitHub Desktop.
Save coffeeaddict/731570 to your computer and use it in GitHub Desktop.
class A
has_many :abcees
has_many :bees, :through => :abcees
has_many :cees, :through => :abcees
end
class Bee
end
class Cee
end
class ABCee
belongs_to :a
belongs_to :bee
belongs_to :cee
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment