Sha256: 730d7ccf697cdf302d9ef3146007b3e324bcfd6a95f5feb04a65b4a9a28f5d36
Contents?: true
Size: 617 Bytes
Versions: 6
Compression:
Stored size: 617 Bytes
Contents
require 'geocoder/models/base' require 'geocoder/models/mongo_base' module Geocoder module Model module MongoMapper include Base include MongoBase def self.included(base); base.extend(self); end private # -------------------------------------------------------------- def geocoder_file_name; "mongo_mapper"; end def geocoder_module_name; "MongoMapper"; end def geocoder_init(options) super(options) ensure_index [[ geocoder_options[:coordinates], Mongo::GEO2D ]], :min => -180, :max => 180 # create 2d index end end end end
Version data entries
6 entries across 6 versions & 1 rubygems