Sha256: 07f264a384cde2f6482e790df97b023139b20ccfb62f851904792dedaaa9355f
Contents?: true
Size: 307 Bytes
Versions: 5
Compression:
Stored size: 307 Bytes
Contents
class Author < ActiveRecord::Base attr_accessible :name has_many :books has_many :old_books, :class_name => "Book", :conditions => {:year => 1990} has_many :quotes, :through => :books has_many :scores, :through => :quotes scope :with_count_of_books, lambda { includes_count_of(:books) } end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dase-3.2.9 | test/fixtures/author.rb |
dase-3.2.7 | test/fixtures/author.rb |
dase-3.2.6 | test/fixtures/author.rb |
dase-3.2.5 | test/fixtures/author.rb |
dase-3.2.4 | test/fixtures/author.rb |