Skip to content

Commit

Permalink
Merge pull request #22 from AbhiOnlyOne/master
Browse files Browse the repository at this point in the history
Updated the Readme
  • Loading branch information
oriolgual committed Jun 11, 2018
2 parents 75ad3f6 + f3ba2f5 commit 707a813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -139,10 +139,10 @@ class Product < ActiveRecord::Base
end
end

bread = Product.create(:name => 'Bread', :vendor => Vendor.where(:name => 'Bread factory'))
bread = Product.create(:name => 'Bread', :vendor => Vendor.where(:name => 'Bread factory').first)
bread.first? # => true

milk = Product.create(:name => 'Milk', :vendor => Vendor.where(:name => 'Cow world'))
milk = Product.create(:name => 'Milk', :vendor => Vendor.where(:name => 'Cow world').first)
milk.first? # => true

# bread and milk aren't neighbours
Expand Down

0 comments on commit 707a813

Please sign in to comment.