Skip to content

Commit

Permalink
.downcase didn't work on unicode symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
zudochkin committed May 31, 2012
1 parent ef93e7f commit 469bb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 469bb37

Please sign in to comment.