Permalink
Browse files

.downcase didn't work on unicode symbols

  • Loading branch information...
1 parent ef93e7f commit 469bb37b12ca91c74543ea496079c623ede1fcb0 @vredniy vredniy committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 469bb37

Please sign in to comment.