Sha256: 219b84836510759d17e49894c9b0f261a1c995f6c475b725ffc56b55ef9187f1

Contents?: true

Size: 215 Bytes

Versions: 7

Compression:

Stored size: 215 Bytes

Contents

class Bus
  include Mongoid::Document
  include Mongoid::Geospatial

  field :plates,   :type => String
  field :location, :type => Point, :delegate => true

  spatial_index :location
  spatial_scope :location

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mongoid_geospatial-2.8.3 spec/models/bus.rb
mongoid_geospatial-2.8.2 spec/models/bus.rb
mongoid_geospatial-2.8.1 spec/models/bus.rb
mongoid_geospatial-2.8.0 spec/models/bus.rb
mongoid_geospatial-2.7.2 spec/models/bus.rb
mongoid_geospatial-2.7.1 spec/models/bus.rb
mongoid_geospatial-2.7.0 spec/models/bus.rb