Sha256: 62f9a3f6e6629a9bceab32589b2e1346c718f628edcdb52cf884cc24c5c49432
Contents?: true
Size: 503 Bytes
Versions: 8
Compression:
Stored size: 503 Bytes
Contents
module CarrierWave module Uploader module DefaultPath def initialize(*args) super if default_path @file = CarrierWave::SanitizedFile.new(File.expand_path(default_path, public)) def @file.blank?; true; end end end ## # Override this method in your uploader to provide a default path # in case no file has been cached/stored yet. # def default_path; end end # DefaultPath end # Uploader end # CarrierWave
Version data entries
8 entries across 8 versions & 2 rubygems