Colon_Cancer_Predict1/app/models/coloncancer_predict_mapping...

12 lines
343 B
Ruby

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