engine/app/uploaders/asset_uploader.rb
2011-06-17 14:32:54 -07:00

12 lines
218 B
Ruby

# encoding: utf-8
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