Class: Spotlight::FeaturedImageUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Defined in:
app/uploaders/spotlight/featured_image_uploader.rb

Overview

Page, browse category, and exhibit featured image thumbnails

Instance Method Summary collapse

Instance Method Details

#extension_white_listObject



7
8
9
# File 'app/uploaders/spotlight/featured_image_uploader.rb', line 7

def extension_white_list
  Spotlight::Engine.config.allowed_upload_extensions
end

#store_dirObject



11
12
13
# File 'app/uploaders/spotlight/featured_image_uploader.rb', line 11

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