Sha256: b4e96e2ba5bdb57415c96b396f3dc9b2a8e4d1c57584911f0307d35e4d06003c

Contents?: true

Size: 452 Bytes

Versions: 12

Compression:

Stored size: 452 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'
    belongs_to :user, class_name: '::User'

    before_destroy :remove_file!
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/models/hyrax/uploaded_file.rb
hyrax-2.0.2 app/models/hyrax/uploaded_file.rb
hyrax-2.0.1 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.rc3 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.rc2 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.rc1 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.beta5 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.beta4 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.beta3 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.beta2 app/models/hyrax/uploaded_file.rb
hyrax-2.0.0.beta1 app/models/hyrax/uploaded_file.rb