DefV / has_many_through_habtm
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
a19ffb0
commit a19ffb04cd6d28818a15112c66503f18380376e1
tree 43ab313ade9224503ec5567625e2e5c7a6252737
parent 93b4d637e5a2a3d13a6d929190acb88206d9bf13
tree 43ab313ade9224503ec5567625e2e5c7a6252737
parent 93b4d637e5a2a3d13a6d929190acb88206d9bf13
README
HasManyThroughHabtm
===================
This plugin allows you to have has_many :through associations with a habtm source.
Example
=======
class Student < ActiveRecord::Base
belongs_to :school
has_and_belongs_to_many :books
end
class Book < ActiveRecord::Base
has_and_belongs_to_many :students
end
class School < ActiveRecord::Base
has_many :students
has_many :books, :through => :students, :uniq => true
end
Copyright (c) 2009 Jan De Poorter, released under the MIT license

