Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid/geo/index.rb,
lib/mongoid/geo/point.rb

Instance Method Summary collapse

Instance Method Details

#create_geo_indexes!Object



18
19
20
# File 'lib/mongoid/geo/index.rb', line 18

def create_geo_indexes!
  self.each {|clazz| clazz.create_index! }
end

#to_geopointObject



78
79
80
# File 'lib/mongoid/geo/point.rb', line 78

def to_geopoint                              
  self.extend(Mongoid::GeoPoint)
end