Sha256: b092e5fc9fb8ffc839b2ce82bc22796e17b86da5b56f7341386ec3500088c91c

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

# Sample spec class
class Farm
  include Mongoid::Document
  include Mongoid::Geospatial

  field :name,         type: String
  field :geom,         type: Point,    spatial: true
  field :area,         type: Polygon,  spatial: true
  field :m2,           type: Fixnum

  spatial_index :geom
  spatial_index :area
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-geospatial-4.0.1 spec/models/farm.rb
mongoid-geospatial-4.0.0 spec/models/farm.rb
mongoid-geospatial-3.9.0 spec/models/farm.rb