Sha256: 0165576ecfc74c451b8da5742357c65dc44d61c34212a5e5e119f4122745a646

Contents?: true

Size: 223 Bytes

Versions: 1

Compression:

Stored size: 223 Bytes

Contents

class Bar
  include Mongoid::Document
  include Mongoid::Geospatial

  field :name,     :type => String
  field :location, :type => Point, :spatial => true

  has_one :rating, :as => :ratable

  spatial_index :location
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_geospatial-2.3.0 spec/models/bar.rb