Method: Mongoid::Extensions::Object#__find_args__

Defined in:
lib/mongoid/extensions/object.rb

#__find_args__Object

Convert the object to args for a find query.

Examples:

Convert the object to args.

object.__find_args__

Returns:

Since:

  • 3.0.0



27
28
29
# File 'lib/mongoid/extensions/object.rb', line 27

def __find_args__
  self
end