engine/app/uploaders/locomotive/editable_file_uploader.rb

11 lines
224 B
Ruby
Raw Normal View History

# encoding: utf-8
module Locomotive
class EditableFileUploader < ::CarrierWave::Uploader::Base
def store_dir
self.build_store_dir('sites', model.page.site_id, 'pages', model.page.id, 'files')
end
end
end