Class: Spotlight::MastheadUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- Spotlight::MastheadUploader
- 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
#default_url ⇒ Object
18 19 20 |
# File 'app/uploaders/spotlight/masthead_uploader.rb', line 18 def default_url ActionController::Base.helpers.image_path('spotlight/fallback/' + [version_name, 'default.png'].compact.join('_')) end |
#store_dir ⇒ Object
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 |