Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

doc, API example on how to use `Model#exists?` with multiple IDs. [ci…

… skip]

Refs #13658
  • Loading branch information...
commit 35cc32841ed343e3013cdf67e7330647d50d668b 1 parent 8ad1612
@senny senny authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  activerecord/lib/active_record/relation/finder_methods.rb
View
1  activerecord/lib/active_record/relation/finder_methods.rb
@@ -195,6 +195,7 @@ def last!
# 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?
Please sign in to comment.
Something went wrong with that request. Please try again.