Sha256: 0e3b10bc6f0ba02d0a341eb5cfce473cf5ba9b60f738acbfc4f763772e0c2030

Contents?: true

Size: 229 Bytes

Versions: 2

Compression:

Stored size: 229 Bytes

Contents

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

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

  spatial_index :location
  spatial_scope :location

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid_geospatial-3.1.0 spec/models/bus.rb
mongoid_geospatial-3.0.0 spec/models/bus.rb