rails/rails — pull request #5309 by carlosantoniodasilva (2012-03-06 21:39:16+00:00)
Title: Refactor ActionDispatch::UploadedFile

Cleanup encode_filename method, and raise ArgumentError sooner if
tempfile is not present - no need to try encoding and grabbing other
attributes if it raises an exception right after that.