lib/mongoid/geo/fields.rb in mongoid_geo-0.1.4 vs lib/mongoid/geo/fields.rb in mongoid_geo-0.1.5

- old
+ new

@@ -13,11 +13,11 @@ when Array value.compact.extend(Mongoid::Geo::Point).to_points else !value.nil? ? value.extend(Mongoid::Geo::Point).to_point : value end - end - value = value[0..1] if !value.nil? + value = value[0..1] if !value.nil? + end write_attribute(name, value) end define_method("#{meth}?") do attr = read_attribute(name) (options[:type] == Boolean) ? attr == true : attr.present? \ No newline at end of file