Sha256: c0b88cfff5205721d899b44beae026d487db2fbf3ceddf14c2c0cbc99f687eb3

Contents?: true

Size: 208 Bytes

Versions: 3

Compression:

Stored size: 208 Bytes

Contents

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

  field :name,     type: String

  geo_field :location

  has_one :rating, as: :ratable

  spatial_scope :location
end

Version data entries

3 entries across 3 versions & 1 rubygems

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