Sha256: 03c0f38edc75f39918ef13c08d374ed2c3e3782d487960339aad2c737658761e
Contents?: true
Size: 390 Bytes
Versions: 4
Compression:
Stored size: 390 Bytes
Contents
module Blacksand class BaseUploader < ::CarrierWave::Uploader::Base # TODO: may be optional include ::CarrierWave::MiniMagick def self.storage_from_config Blacksand.carrierwave_storage end storage storage_from_config def store_dir "#{Blacksand.carrierwave_store_dir_prefix}/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems