engine/app/uploaders/locomotive/asset_uploader.rb

13 lines
251 B
Ruby

# encoding: utf-8
module Locomotive
class AssetUploader < 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