Permalink
Browse files

small bug fix

  • Loading branch information...
Tomas Jogin
Tomas Jogin committed Dec 7, 2011
1 parent 02dec6c commit 94b20557f352e6fc7382e4bdd3afa826cbf22d1e
Showing with 3 additions and 3 deletions.
  1. +1 −1 Gemfile.lock
  2. +1 −1 lib/naive-search/naive_search_on.rb
  3. +1 −1 lib/naive-search/version.rb
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- naive-search (0.1.6)
+ naive-search (0.1.8)
rails (~> 3.1.1)
unicode_utils (~> 1.0.0)
@@ -42,7 +42,7 @@ def relevance_for(query)
words = query.split " "
score = self.naive_search_fields.map do |field|
- content = self.send(field).to_s.downcase
+ content = ::UnicodeUtils.downcase self.send(field).to_s
words.map do |w|
# one point for partial word matches
(content.scan(w).size +
@@ -1,3 +1,3 @@
module NaiveSearch
- VERSION = "0.1.7"
+ VERSION = "0.1.8"
end

0 comments on commit 94b2055

Please sign in to comment.