title: Error uploading non image files with paperclip in rails 4.2
body: <p>I am getting this error while uploading non-image files through paperclip.</p>
  
  <p><code>Paperclip error - NotIdentifiedByImageMagickError</code></p>
  
  <p>Here is my model code:</p>
  
  <pre><code>has_attached_file :attachment, :styles =&gt; { :medium =&gt; "236x236&gt;", :thumb =&gt; "150x150&gt;", :large =&gt; "1000x500" }
  </code></pre>
  
  <p>Here is the version of my gems: <code>paperclip (4.2.1) activemodel (&gt;= 3.0.0) activesupport (&gt;= 3.0.0) cocaine (~&gt; 0.5.3) mime-types</code></p>
  
  <p>It works fine if I remove the styles from model. But I need to resize the images as well.</p>