Sha256: 5f070b6bfaad7ef2d4f60ee4a59b1829c86a5ea590e747edad2a866cbd89d14a

Contents?: true

Size: 161 Bytes

Versions: 5

Compression:

Stored size: 161 Bytes

Contents

class Book < ActiveRecord::Base
  attr_accessible :title, :year

  belongs_to :author
  has_many :quotes

  scope :year2012, lambda{ where(:year => 2012) }

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dase-3.2.9 test/fixtures/book.rb
dase-3.2.7 test/fixtures/book.rb
dase-3.2.6 test/fixtures/book.rb
dase-3.2.5 test/fixtures/book.rb
dase-3.2.4 test/fixtures/book.rb