Method: Mongoid::Extensions::Object#__sortable__

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

#__sortable__Object

Get the value of the object as a mongo friendy sort value.

Examples:

Get the object as sort criteria.

object.__sortable__

Returns:

Since:

  • 3.0.0



63
64
65
# File 'lib/mongoid/extensions/object.rb', line 63

def __sortable__
  self
end