From 8a40337340793525d2336d6fbdf0f143e1ae1a8c Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Wed, 17 Oct 2012 11:17:56 -0400 Subject: [PATCH] Rearrange parentheses to avoid confusion. --- lib/geocoder/models/mongoid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geocoder/models/mongoid.rb b/lib/geocoder/models/mongoid.rb index 763c2983..b1497327 100644 --- a/lib/geocoder/models/mongoid.rb +++ b/lib/geocoder/models/mongoid.rb @@ -18,7 +18,7 @@ module Geocoder super(options) if options[:skip_index] == false # create 2d index - if (defined? ::Mongoid::VERSION && ::Mongoid::VERSION >= "3") + if defined?(::Mongoid::VERSION) && ::Mongoid::VERSION >= "3" index({ geocoder_options[:coordinates].to_sym => '2d' }, {:min => -180, :max => 180}) else -- GitLab