debian-mirror-gitlab/app/uploaders/attachment_uploader.rb
2016-09-13 17:45:13 +05:30

9 lines
195 B
Ruby

class AttachmentUploader < CarrierWave::Uploader::Base
include UploaderHelper
storage :file
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
end