Skip to content
Snippets Groups Projects
Commit 5338785d authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge branch 'master' of github.com:alexreisner/geocoder

parents 236c736d cad176db
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ module Geocoder
super(options)
if options[:skip_index] == false
# create 2d index
if (::Mongoid::VERSION >= "3")
if (defined? ::Mongoid::VERSION && ::Mongoid::VERSION >= "3")
index({ geocoder_options[:coordinates].to_sym => '2d' },
{:min => -180, :max => 180})
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment