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_allowlistObject



9
10
11
# File 'app/uploaders/spotlight/featured_image_uploader.rb', line 9

def extension_allowlist
  Spotlight::Engine.config.allowed_upload_extensions
end

#store_dirObject



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

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