-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
class Foo include Mongoid::Document field :position, type: Integer end Foo.create! Foo.max(:position) # => "start" Foo.min(:position) # => "start" Foo.max(:whatever) # => "start"
Shouldn't #max and #min return nil or 0 instead?