Class: Spotlight::ItemUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Extended by:
ImageDerivatives
Includes:
CarrierWave::MiniMagick
Defined in:
app/uploaders/spotlight/item_uploader.rb

Overview

Uploaded resource image attachments, downloaded locally for cropping and representation. See Resource::Upload

Instance Method Summary collapse

Methods included from ImageDerivatives

apply_spotlight_image_derivative_versions

Instance Method Details

#extension_white_listObject



13
14
15
# File 'app/uploaders/spotlight/item_uploader.rb', line 13

def extension_white_list
  Spotlight::Engine.config.allowed_upload_extensions
end

#store_dirObject



17
18
19
# File 'app/uploaders/spotlight/item_uploader.rb', line 17

def store_dir
  "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end