Read about our upcoming Code of Conduct on this issue

import_export_upload.rb 334 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
class ImportExportUpload < ActiveRecord::Base
  include WithUploads
  include ObjectStorage::BackgroundMove

  belongs_to :project

  mount_uploader :import_file, ImportExportUploader
  mount_uploader :export_file, ImportExportUploader

  def retrieve_upload(_identifier, paths)
    Upload.find_by(model: self, path: paths)
  end
end