Serialize Tempfile to send in background-worker
<p>My idea is to try to convert a TempFile into a string and then convert that string back into a TempFile. Is there an easier way to do this with ruby?</p>

<pre><code>file = #&lt;File:/var/folders/b6/c3fypxm50b75hszctcgr8brm0000gn/T/RackMultipart20160603-8771-rehwdq.pdf&gt;

string_file = file.to_s
new_file = file.to_file 
</code></pre>