Sha256: 62308a63675219249e83f92863afd24f6efe3cc9fc7dc7dd695fc01fd7f24d38

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

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

  field :name,     type: String

  field :location, type: Point, spatial: true

  has_one :rating, as: :ratable

  spatial_scope :location
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-geospatial-5.1.0 spec/models/bar.rb
mongoid-geospatial-5.0.0 spec/models/bar.rb