Class: Spotlight::MastheadUploader

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

Overview

Exhibit and browse category custom mastheads

Instance Method Summary collapse

Instance Method Details

#store_dirObject



14
15
16
# File 'app/uploaders/spotlight/masthead_uploader.rb', line 14

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