Sha256: 271c20a6c4a2a6cf4371fdf29be1dfe836852c8a747989cba6fec3f0018650e3
Contents?: true
Size: 438 Bytes
Versions: 3
Compression:
Stored size: 438 Bytes
Contents
# encoding: utf-8 module Spotlight class CsvUploader < CarrierWave::Uploader::Base # Choose what kind of storage to use for this uploader: storage :file # storage :fog # 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/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems