Sha256: 056530e53fc5c1e4ce2740e22eaaa8f6b98380b654b9a4dfe4c6859f5cd71571

Contents?: true

Size: 237 Bytes

Versions: 1

Compression:

Stored size: 237 Bytes

Contents

module Mongoid
  module Geospatial
    class LineString

      def mongoize(object)
        RGeo::Geographic.spherical_factory.line_string *object
      end

      def demongoize(object)
        object.to_a
      end


    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_geospatial-1.0.0 lib/mongoid_geospatial/fields/line_string.rb