DefV / has_many_through_habtm

This plugin allows you to have has_many :through associations with a habtm source.

This URL has Read+Write access

DefV (author)
Tue Oct 06 01:35:42 -0700 2009
commit  a19ffb04cd6d28818a15112c66503f18380376e1
tree    43ab313ade9224503ec5567625e2e5c7a6252737
parent  93b4d637e5a2a3d13a6d929190acb88206d9bf13
name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
directory lib/
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