# File lib/mongoid/fields/serializable/range.rb, line 36 def serialize(object) object.nil? ? nil : { "min" => object.min, "max" => object.max } end