Class: Locomotive::ContentAssetUploader

Inherits:
CarrierWave::Uploader::Base 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

#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

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