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