Class: Locomotive::ContentAssetUploader

Inherits:
BaseUploader show all
Includes:
Locomotive::CarrierWave::Uploader::Asset
Defined in:
app/uploaders/locomotive/content_asset_uploader.rb

Instance Method Summary collapse

Methods included from Locomotive::CarrierWave::Uploader::Asset

#apply_content_type_exception, #find_content_type_of_model, #image?, #set_content_type_of_model, #set_size, #set_width_and_height

Methods inherited from CarrierWave::Uploader::Base

#build_store_dir, #to_label, #to_liquid

Methods included from CarrierWave::Uploader::Base64Download

#download!

Instance Method Details

#store_dirObject


8
9
10
# File 'app/uploaders/locomotive/content_asset_uploader.rb', line 8

def store_dir
  self.build_store_dir('sites', model.site_id, 'assets', model.id)
end