mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f2546164d6
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
5 lines
234 B
Ruby
5 lines
234 B
Ruby
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
|