title: Auto orienting images with Carrierwave causes them to not save
body: <p>Using Rails 3.2.13 and Carrierwave 0.9.0, and I noticed my images were all rotated when uploading, so I wanted to auto orient them. This is the uploader:</p>
  
  <pre><code>class PhotoUploader &lt; CarrierWave::Uploader::Base
    include CarrierWave::RMagick
  
    process :auto_orient
    storage :fog
  
    def auto_orient
      manipulate! do |img|
        img.auto_orient
        img
      end
    end
  
    def store_dir
      "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
    end
  end
  </code></pre>
  
  <p>After adding the process line, images will no longer save to the database. They save fine if I comment out that line. The form I'm using allows for multiple photo uploads at once and has photos_attributes nested under the photo album resource, as they're getting created together. This is the Photo model:</p>
  
  <pre><code>class Photo &lt; ActiveRecord::Base
    attr_accessible :photo ...
    mount_uploader :photo, PhotoUploader
    belongs_to :album
  end
  </code></pre>
  
  <p>How can I get this working?</p>