You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jarosław Kowalewski edited this page Mar 2, 2017
·
12 revisions
Rails 3 no longer provides a StringIO#original_filename method, so uploading files from a string doesn't work. For example, the following worked in Rails 2:
But, I'd much prefer not monkey patching the class in case another library is expecting it to behave as documented. To achieve this, I've most recently done something like the following in a config/initializers/stringiohax.rb file.