Permalink
Browse files

add missing parenthesis

  • Loading branch information...
ggennrich committed Jun 14, 2012
1 parent dce432d commit 7ff78f82f493fc8d60f935bae2c9c47d2f102501
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongoid_search/mongoid_search.rb
@@ -27,7 +27,7 @@ def search_in(*args)
field :_keywords, :type => Array
- Gem.loaded_specs["mongoid"].version.to_s.include?("3.0") ? index({_keywords: 1}, {background: true}) : index :_keywords, :background => true
+ Gem.loaded_specs["mongoid"].version.to_s.include?("3.0") ? (index({_keywords: 1}, {background: true})) : (index :_keywords, :background => true)
before_save :set_keywords
end

0 comments on commit 7ff78f8

Please sign in to comment.