Method: Mongoid::Extensions::FalseClass#__sortable__

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

#__sortable__Integer

Deprecated.

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

Examples:

Get the object as sort criteria.

object.__sortable__

Returns:



15
16
17
# File 'lib/mongoid/extensions/false_class.rb', line 15

def __sortable__
  0
end