Sha256: 85932c8bee0fbe8f69cfc813a20e5ae70c91ae74b3727521d89aef6563693d91

Contents?: true

Size: 402 Bytes

Versions: 10

Compression:

Stored size: 402 Bytes

Contents

after :authors do
  first_author = Author.friendly.find('first-author')
  second_author = Author.friendly.find('second-author')

  FactoryGirl.create(:book, title: 'Book A', author: first_author)
  FactoryGirl.create(:book, title: 'Book B', author: first_author)
  FactoryGirl.create(:book, title: 'Book C', author: second_author)
  FactoryGirl.create(:book, title: 'Book B', author: second_author)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
friendly_id-method_scopes-0.3.3 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.3.2 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.3.1 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.3.0 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.2.6 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.2.5 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.1.8 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.1.7 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.1.6 spec/dummy/db/seeds/books.seeds.rb
friendly_id-method_scopes-0.1.5 spec/dummy/db/seeds/books.seeds.rb