Sha256: a281951bb9cea934aedd45cb278b5e39edf59336c6e983c3b601c729e5ea0847

Contents?: true

Size: 478 Bytes

Versions: 10

Compression:

Stored size: 478 Bytes

Contents

module Hyrax
  # Store a file uploaded by a user. Eventually these files get
  # attached to FileSets and pushed into Fedora.
  class UploadedFile < ActiveRecord::Base
    self.table_name = 'uploaded_files'
    mount_uploader :file, UploadedFileUploader
    alias uploader file
    has_many :job_io_wrappers,
             inverse_of: 'uploaded_file',
             class_name: 'JobIoWrapper',
             dependent: :destroy
    belongs_to :user, class_name: '::User'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/models/hyrax/uploaded_file.rb
hyrax-2.9.5 app/models/hyrax/uploaded_file.rb
hyrax-2.9.4 app/models/hyrax/uploaded_file.rb
hyrax-2.9.3 app/models/hyrax/uploaded_file.rb
hyrax-2.9.2 app/models/hyrax/uploaded_file.rb
hyrax-2.9.1 app/models/hyrax/uploaded_file.rb
hyrax-2.9.0 app/models/hyrax/uploaded_file.rb
hyrax-2.8.0 app/models/hyrax/uploaded_file.rb
hyrax-3.0.0.pre.rc1 app/models/hyrax/uploaded_file.rb
hyrax-3.0.0.pre.beta3 app/models/hyrax/uploaded_file.rb