engine/app/uploaders/asset_uploader.rb

12 lines
218 B
Ruby
Raw Normal View History

2010-05-12 00:16:39 +00:00
# encoding: utf-8
class AssetUploader < CarrierWave::Uploader::Base
include Locomotive::CarrierWave::Uploader::Asset
def store_dir
2011-06-17 21:32:54 +00:00
self.build_store_dir('sites', model.site_id, 'assets', model.id)
end
2010-05-12 00:16:39 +00:00
end