From 262137441a7ce4c7606b63e3d1c9f7a00b1b0550 Mon Sep 17 00:00:00 2001 From: Alan Savage <65185890+alan-pie@users.noreply.github.com> Date: Fri, 28 Aug 2020 10:17:47 -0700 Subject: [PATCH] Clarify exists? and find query only in the table --- guides/source/association_basics.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 14f388730c..8b50ebc0fd 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -1614,7 +1614,7 @@ The `collection.size` method returns the number of objects in the collection. ##### `collection.find(...)` -The `collection.find` method finds objects within the collection. It uses the same syntax and options as +The `collection.find` method finds objects within the collection's table. It uses the same syntax and options as [`ActiveRecord::Base.find`](https://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-find). ```ruby @@ -1633,7 +1633,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 -conditions exists in the collection. It uses the same syntax and options as +conditions exists in the collection's table. It uses the same syntax and options as [`ActiveRecord::Base.exists?`](https://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-exists-3F). ##### `collection.build(attributes = {}, ...)` @@ -2161,7 +2161,7 @@ The `collection.size` method returns the number of objects in the collection. ##### `collection.find(...)` -The `collection.find` method finds objects within the collection. It uses the same syntax and options as +The `collection.find` method finds objects within the collection's table. It uses the same syntax and options as [`ActiveRecord::Base.find`](https://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-find). ```ruby @@ -2179,7 +2179,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 -conditions exists in the collection. It uses the same syntax and options as +conditions exists in the collection's table. It uses the same syntax and options as [`ActiveRecord::Base.exists?`](https://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-exists-3F). ##### `collection.build(attributes = {})`