Sha256: f54533cab8adb66ef62af1a6b2d6b9509e2010be48fb42d1bc460aaa24e91f0f
Contents?: true
Size: 363 Bytes
Versions: 6
Compression:
Stored size: 363 Bytes
Contents
# encoding: utf-8 class ImageUploader < CarrierWave::Uploader::Base # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir "uploads/#{Rails.env}/#{model.class.to_s.underscore}/#{model.id}" end def cache_dir Rails.root.join 'tmp/uploads' end end
Version data entries
6 entries across 6 versions & 1 rubygems