Remove uses of string.mb_chars.downcase.

`string.mb_chars.downcase` was used to correctly downcase Unicode
characters when downcasing strings in Ruby <2.4. This hasn't been needed
since Ruby 2.4.
This commit is contained in:
evazion
2022-02-05 13:27:38 -06:00
parent a3ef7bf573
commit 6ff5ae1ce8
7 changed files with 7 additions and 8 deletions

View File

@@ -187,7 +187,7 @@ class User < ApplicationRecord
end
def normalize_name(name)
name.to_s.mb_chars.downcase.strip.tr(" ", "_").to_s
name.to_s.downcase.strip.tr(" ", "_").to_s
end
end