Colon_Cancer_Predict2/app/models/coloncancer_predict_mapping...

10 lines
264 B
Ruby

# encoding: utf-8
class ColoncancerPredictMappingFile2
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :temp_file, ColonHeadImagesUploader2
def file_identifier
filename = self.temp_file.file.original_filename rescue ""
end
end