Skip to content

Commit

Permalink
Merge pull request #262 from vredniy/master
Browse files Browse the repository at this point in the history
#downcase doesn't work on unicode symbols
  • Loading branch information
artemk committed May 31, 2012
2 parents d288663 + 469bb37 commit c3f2901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/tag.rb
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 c3f2901

Please sign in to comment.