Sha256: a914205342f3c649c0e3e9ab63dd40e7bf56415606aa5adc1a0ff6d681263603

Contents?: true

Size: 341 Bytes

Versions: 9

Compression:

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

    before_destroy :remove_file!
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/models/hyrax/uploaded_file.rb
hyrax-1.1.0 app/models/hyrax/uploaded_file.rb
hyrax-1.0.5 app/models/hyrax/uploaded_file.rb
hyrax-1.0.4 app/models/hyrax/uploaded_file.rb
hyrax-1.0.3 app/models/hyrax/uploaded_file.rb
hyrax-1.0.2 app/models/hyrax/uploaded_file.rb
hyrax-1.0.1 app/models/hyrax/uploaded_file.rb
hyrax-1.0.0.rc2 app/models/hyrax/uploaded_file.rb
hyrax-1.0.0.rc1 app/models/hyrax/uploaded_file.rb