aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--guides/source/active_record_querying.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index ba0260c13c..6c06399673 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -1514,9 +1514,9 @@ Client.exists?(1)
The `exists?` method also takes multiple ids, but the catch is that it will return true if any one of those records exists.
```ruby
-Client.exists?(1,2,3)
-# or
-Client.exists?([1,2,3])
+Client.exists?id:[1,2,3]
+or
+Client.exists?name:['John','Sergei']
```
It's even possible to use `exists?` without any arguments on a model or a relation.