Created
April 19, 2012 14:33
-
-
Save rwrrll/2421335 to your computer and use it in GitHub Desktop.
Patch Rack::Test::UploadedFile to be compatible with ActionDispatch::Http::UploadedFile (avoid "undefined method 'Tempfile'" error)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Rack | |
module Test | |
class UploadedFile | |
def tempfile | |
self | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment