diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-01-10 09:59:19 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-01-10 09:59:19 +0100 |
commit | 35cc32841ed343e3013cdf67e7330647d50d668b (patch) | |
tree | 00c82eaa98de81e6cd5fc7048c786bfe5419b68e | |
parent | 8ad161201100b1ecb976e0096ab5a0936a934ac4 (diff) | |
download | rails-35cc32841ed343e3013cdf67e7330647d50d668b.tar.gz rails-35cc32841ed343e3013cdf67e7330647d50d668b.tar.bz2 rails-35cc32841ed343e3013cdf67e7330647d50d668b.zip |
doc, API example on how to use `Model#exists?` with multiple IDs. [ci skip]
Refs #13658
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 3963f2b3e0..4984dbd277 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -195,6 +195,7 @@ module ActiveRecord # Person.exists?(5) # Person.exists?('5') # Person.exists?(['name LIKE ?', "%#{query}%"]) + # Person.exists?(id: [1, 4, 8]) # Person.exists?(name: 'David') # Person.exists?(false) # Person.exists? |