Method: Mongoid::Extensions::Object#__sortable__

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

#__sortable__Object

Deprecated.

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

Examples:

Get the object as sort criteria.

object.__sortable__

Returns:



54
55
56
# File 'lib/mongoid/extensions/object.rb', line 54

def __sortable__
  self
end