lib/mongoid/geo/fields.rb in mongoid_geo-0.5.0 vs lib/mongoid/geo/fields.rb in mongoid_geo-0.5.1
- old
+ new
@@ -40,10 +40,10 @@
else
!value.nil? ? value.extend(Mongoid::Geo::Point).to_point : value
end
value = value[0..1] if !value.nil?
end
- value.reverse! if Mongoid::Geo.spherical && value && !value.kind_of?(BSON::ObjectId)
+ value.reverse! if Mongoid::Geo.spherical && value && value.kind_of?(Array)
write_attribute(name, value)
end
define_method("#{meth}?") do
attr = read_attribute(name)
\ No newline at end of file