Browse files

Merge pull request #262 from vredniy/master

#downcase doesn't work on unicode symbols
  • Loading branch information...
2 parents d288663 + 469bb37 commit c3f2901f788c9b7b1d4958373701ca348a3c97fc @artemk artemk committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/acts_as_taggable_on/tag.rb
View
2 lib/acts_as_taggable_on/tag.rb
@@ -21,7 +21,7 @@ def self.named(name)
end
def self.named_any(list)
- where(list.map { |tag| sanitize_sql(["lower(name) = ?", tag.to_s.downcase]) }.join(" OR "))
+ where(list.map { |tag| sanitize_sql(["lower(name) = ?", tag.to_s.mb_chars.downcase]) }.join(" OR "))
end
def self.named_like(name)

0 comments on commit c3f2901

Please sign in to comment.