# encoding: utf-8 module Spotlight class ItemUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick extend Spotlight::ImageDerivatives storage :file apply_spotlight_image_derivative_versions def extension_white_list Spotlight::Engine.config.allowed_upload_extensions end def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end end