Sha256: feaf1dcb5d13049f76ac8c5caf53362cae9ca24ecac78ffb9873b63e1d9e2b03
Contents?: true
Size: 294 Bytes
Versions: 3
Compression:
Stored size: 294 Bytes
Contents
module Ecom module Core class PhotoUploader < CarrierWave::Uploader::Base storage :file def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end def extension_whitelist %w[jpg jpeg gif png] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.25 | app/uploaders/ecom/core/photo_uploader.rb |
ecom_core-1.2.24 | app/uploaders/ecom/core/photo_uploader.rb |
ecom_core-1.2.23 | app/uploaders/ecom/core/photo_uploader.rb |