class ActiveSupport::Multibyte::Chars

def limit(limit)

'こんにちは'.mb_chars.limit(7).to_s # => "こん"

reason.
characters. Usable when the storage for a string is limited for some
Limits the byte size of the string to a number of bytes without breaking
def limit(limit)
  chars(@wrapped_string.truncate_bytes(limit, omission: nil))
end