Skip to content

Commit

Permalink
add missing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
ggennrich committed Jun 14, 2012
1 parent dce432d commit 7ff78f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid_search/mongoid_search.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7ff78f8

Please sign in to comment.