Method: Mongoid::Contexts::Enumerable#min

Defined in:
lib/mongoid/contexts/enumerable.rb

#min(field) ⇒ Object

Get the smallest value for the field in all the documents.

Returns:

The numerical smallest value.



107
108
109
# File 'lib/mongoid/contexts/enumerable.rb', line 107

def min(field)
  determine(field, :<=)
end