Class: Spotlight::ItemUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- Spotlight::ItemUploader
show all
- Extended by:
- ImageDerivatives
- Includes:
- CarrierWave::MiniMagick
- Defined in:
- app/uploaders/spotlight/item_uploader.rb
Instance Method Summary
collapse
apply_spotlight_image_derivative_versions
Instance Method Details
#extension_white_list ⇒ Object
10
11
12
|
# File 'app/uploaders/spotlight/item_uploader.rb', line 10
def extension_white_list
Spotlight::Engine.config.allowed_upload_extensions
end
|
#store_dir ⇒ Object
14
15
16
|
# File 'app/uploaders/spotlight/item_uploader.rb', line 14
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
|