-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Query
-
None
-
Fully Compatible
In ActiveRecord, you can do the following:
Customers.exists?(name: "Bob")
This is equivalent to:
Customers.where(name: "Bob").exists?
Currently, Mongoid does not accept arguments for the .exists? method. It would be nice if this could be supported.