require 'rgeo' require 'mongoid' require 'active_support/core_ext/string/inflections' require 'active_support/concern' require 'mongoid_location/version' #require 'mongoid_location/contextual/mongo' if Mongoid::VERSION > '3' require 'mongoid_location/contextual/mongo' else require 'mongoid_location/contexts/mongo' end require 'mongoid_location/criteria' require 'mongoid_location/extensions/symbol' require 'mongoid_location/extensions/rgeo_spherical_point_impl' require 'mongoid_location/field_option' fields_path = 'mongoid_location/fields' + (Mongoid::VERSION > '3' ? '' : '/mongoid2') %w{point polygon line_string}.each do |type| require "#{fields_path}/#{type}" end require 'mongoid_location/finders' require 'mongoid_location/location' #module MongoidLocation # Your code goes here... #end