Displaying 1 result from an estimated 1 matches for "try_covert".
Did you mean:
try_convert
2013 Mar 22
0
Should to_io be added to ActionDispatch::Http::UploadedFile?
In rest-client/rest-client#144<https://github.com/rest-client/rest-client/issues/144#issuecomment-14876580> we''re
trying to handle objects that behave like IO. Some have suggested that
respond_to?(:read) is a poor test of this and have suggested using
IO.try_covert(obj) instead. My counter example for this is
ActionDispatch::Http::UploadedFile. I''m wondering if there would be any
support for adding this method? I''d be happy to craft a pull request.
See: http://www.ruby-doc.org/core-2.0/IO.html#method-c-try_convert
Justin Coyne
--
You...