aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/association_basics.md
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-06-07 14:51:53 +0200
committerRobin Dupret <robin.dupret@gmail.com>2015-06-07 14:53:24 +0200
commit27eccc27cbe987be04bb97b49aff1d7fd118634c (patch)
tree9f3cfba2ffb773955ea288fa883418b6b0ef83de /guides/source/association_basics.md
parentc429674f8625fccdc7c2a0e685f122de4531552c (diff)
downloadrails-27eccc27cbe987be04bb97b49aff1d7fd118634c.tar.gz
rails-27eccc27cbe987be04bb97b49aff1d7fd118634c.tar.bz2
rails-27eccc27cbe987be04bb97b49aff1d7fd118634c.zip
A few documentation tweaks [ci skip]
[Robin Dupret & Shunsuke Aida]
Diffstat (limited to 'guides/source/association_basics.md')
-rw-r--r--guides/source/association_basics.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 3f63c31cce..05dd0d2a04 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -1473,7 +1473,8 @@ The `collection.clear` method removes all objects from the collection according
@customer.orders.clear
```
-WARNING: Objects will be delete if they're associated with `dependent: :destroy`, just like `dependent: :delete_all`.
+WARNING: Objects will be deleted if they're associated with `dependent: :destroy`,
+just like `dependent: :delete_all`.
##### `collection.empty?`
@@ -1512,7 +1513,7 @@ The `collection.where` method finds objects within the collection based on the c
##### `collection.exists?(...)`
-The `collection.exists?` method checks whether an object meeting the supplied
+The `collection.exists?` method checks whether an object meeting the supplied
conditions exists in the collection. It uses the same syntax and options as
[`ActiveRecord::Base.exists?`](http://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-exists-3F).