2010-08-31 21:53:30 +00:00
|
|
|
class EditableFileUploader < ::CarrierWave::Uploader::Base
|
|
|
|
|
|
|
|
def store_dir
|
|
|
|
"sites/#{model.page.site_id}/pages/#{model.page.id}/files"
|
|
|
|
end
|
|
|
|
|
2011-04-06 23:34:36 +00:00
|
|
|
# def cache_dir
|
|
|
|
# "#{Rails.root}/tmp/uploads"
|
|
|
|
# end
|
2010-08-31 21:53:30 +00:00
|
|
|
|
|
|
|
end
|