cancer_predict/app/models/cancer_predict_mapping_file.rb

12 lines
331 B
Ruby

# encoding: utf-8
class CancerPredictMappingFile
require 'carrierwave/processing/mime_types'
include Mongoid::Document
include Mongoid::Timestamps
include CarrierWave::MimeTypes
mount_uploader :temp_file, HeadImagesUploader
def file_identifier
filename = self.temp_file.file.original_filename rescue ""
end
end