Sha256: c8401c2c5383917ffb54689006fcfce5b66ddaa6071ad38865f5e2fda9abd56e
Contents?: true
Size: 335 Bytes
Versions: 39
Compression:
Stored size: 335 Bytes
Contents
# encoding: utf-8 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
39 entries across 37 versions & 6 rubygems