Class: Locomotive::ContentAssetUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- Locomotive::ContentAssetUploader
- 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_dir ⇒ Object
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 |