Sha256: 6b5de7261366c5d9c5d4d82761cf053a7b933f15395746e2fee530b8fdcec109

Contents?: true

Size: 264 Bytes

Versions: 9

Compression:

Stored size: 264 Bytes

Contents

class Book < ActiveRecord::Base
  has_many :authorships, :dependent => :destroy
  has_many :authors, :through => :authorships, :source => :person

  has_many :editorships, :dependent => :destroy
  has_many :editors, :through => :editorships

  has_paper_trail
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paper_trail-4.2.0 test/dummy/app/models/book.rb
paper_trail-4.1.0 test/dummy/app/models/book.rb
paper_trail-4.0.2 test/dummy/app/models/book.rb
paper_trail-4.0.1 test/dummy/app/models/book.rb
paper_trail-4.0.0 test/dummy/app/models/book.rb
paper_trail-4.0.0.rc2 test/dummy/app/models/book.rb
paper_trail-4.0.0.rc1 test/dummy/app/models/book.rb
paper_trail-4.0.0.beta2 test/dummy/app/models/book.rb
paper_trail-4.0.0.beta1 test/dummy/app/models/book.rb