Module: Paperclip

Defined in:
lib/paperclip_patch.rb

Overview

We will replace every underscores (_) in the filename for a hyphen (-) This must be done in a patch because Paperclip has hardcoded that all :restricted_characters will be replaced by an underscore in the FilenameCleaner class: github.com/thoughtbot/paperclip/blob/master/lib/paperclip/filename_cleaner.rb For this reason, we can’t add the underscore char to the :restricted_characters config.

Defined Under Namespace

Classes: FilenameCleaner