From a2091d4c215e642e3d9daa2bcc816960174994f1 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Wed, 3 Mar 2010 19:34:46 +0000 Subject: This was broken due to Rails version change altering name of class - found by adding tests (see later commit for them) --- app/controllers/request_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 29bdb5c88..5a03f0317 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -650,7 +650,7 @@ class RequestController < ApplicationController if params[:submitted_upload_response] file_name = nil file_content = nil - if params[:file_1].class.to_s == "ActionController::UploadedTempfile" + if !params[:file_1].nil? file_name = params[:file_1].original_filename file_content = params[:file_1].read end -- cgit v1.2.3