Sha256: 79a4997ef1795554ff1494a6df1f2185be2f8be9d1dc2ea4ef2918a3de4bc375

Contents?: true

Size: 297 Bytes

Versions: 13

Compression:

Stored size: 297 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
mongoid_geospatial-3.1.0 spec/models/farm.rb
mongoid_geospatial-3.0.0 spec/models/farm.rb
mongoid_geospatial-2.8.3 spec/models/farm.rb
mongoid_geospatial-2.8.2 spec/models/farm.rb
mongoid_geospatial-2.8.1 spec/models/farm.rb
mongoid_geospatial-2.8.0 spec/models/farm.rb
mongoid_geospatial-2.7.2 spec/models/farm.rb
mongoid_geospatial-2.7.1 spec/models/farm.rb
mongoid_geospatial-2.7.0 spec/models/farm.rb
mongoid_geospatial-2.5.1 spec/models/farm.rb
mongoid_geospatial-2.5.0 spec/models/farm.rb
mongoid_geospatial-2.3.0 spec/models/farm.rb
mongoid_geospatial-2.2.0 spec/models/farm.rb