diff --git a/lib/carrierwave/sanitized_file.rb b/lib/carrierwave/sanitized_file.rb index 45bae2925..9f009d345 100644 --- a/lib/carrierwave/sanitized_file.rb +++ b/lib/carrierwave/sanitized_file.rb @@ -1,5 +1,4 @@ require 'pathname' -require 'active_support/core_ext/string/multibyte' require 'marcel' module CarrierWave @@ -312,7 +311,7 @@ def sanitize(name) name = name.gsub(sanitize_regexp, "_") name = "_#{name}" if name =~ /\A\.+\z/ name = "unnamed" if name.size.zero? - name.mb_chars.to_s + name.to_s end def declared_content_type