Sha256: d842afa40f7fb611a495103454f6b6f479c18672647306e30b71e48b00cff7d3
Contents?: true
Size: 272 Bytes
Versions: 6
Compression:
Stored size: 272 Bytes
Contents
class Author < ActiveRecord::Base has_many :books has_many :old_books, -> { where year: 1990 }, class_name: 'Book' has_many :quotes, :through => :books has_many :scores, :through => :quotes scope :with_count_of_books, lambda { includes_count_of(:books) } end
Version data entries
6 entries across 6 versions & 1 rubygems