Class: Spotlight::FeaturedImageUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Includes:
CarrierWave::MiniMagick
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

#store_dirObject



21
22
23
# File 'app/uploaders/spotlight/featured_image_uploader.rb', line 21

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