Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add missing parenthesis

  • Loading branch information...
commit 7ff78f82f493fc8d60f935bae2c9c47d2f102501 1 parent dce432d
@ggennrich ggennrich authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/mongoid_search/mongoid_search.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.