lib/mongoid/geospatial/wrappers/georuby.rb in mongoid-geospatial-5.0.0 vs lib/mongoid/geospatial/wrappers/georuby.rb in mongoid-geospatial-5.1.0
- old
+ new
@@ -14,9 +14,10 @@
# With GeoRuby support
#
# @return (GeoRuby::SimpleFeatures::Point)
def to_geo
return unless valid?
+
GeoRuby::SimpleFeatures::Point.xy(x, y)
end
#
# With GeoRuby support