Sha256: 89a41fd4986d53b1f60c6e32f4cc49459118362dc543b63070b5c83941882f23
Contents?: true
Size: 317 Bytes
Versions: 15
Compression:
Stored size: 317 Bytes
Contents
module Paperclip class FilenameCleaner def initialize(invalid_character_regex) @invalid_character_regex = invalid_character_regex end def call(filename) if @invalid_character_regex filename.gsub(@invalid_character_regex, "_") else filename end end end end
Version data entries
15 entries across 15 versions & 2 rubygems