Class: Spotlight::FeaturedImageUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- Spotlight::FeaturedImageUploader
- 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_allowlist ⇒ Object
9 10 11 |
# File 'app/uploaders/spotlight/featured_image_uploader.rb', line 9 def extension_allowlist Spotlight::Engine.config.allowed_upload_extensions end |
#store_dir ⇒ Object
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 |