engine/app/uploaders/locomotive/content_asset_uploader.rb

13 lines
260 B
Ruby

# encoding: utf-8
module Locomotive
class ContentAssetUploader < ::CarrierWave::Uploader::Base
include Locomotive::CarrierWave::Uploader::Asset
def store_dir
self.build_store_dir('sites', model.site_id, 'assets', model.id)
end
end
end