aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/person.rb
blob: 366f9fb70817dd3fce3db3e289f00d3a7117ddbb (plain) (tree)
1
2
3
4
5


                                       
                                                                                                                                       
   
class Person < ActiveRecord::Base
  has_many :readers
  has_many :posts, :through => :readers
  has_many :posts_with_no_comments, :through => :readers, :source => :post, :include => :comments, :conditions => 'comments.id is null'
end