lardawge/carrierwave_backgrounder — pull request #20 by jtescher (2012-01-20 22:28:07+00:00)
Title: Add support for carrierwave-mongoid's #recreate_versions! 

Calling record.send(:"#{column}").recreate_versions! can fail when using Mongoid and remotely hosted files.

(https://github.com/jnicklas/carrierwave-mongoid/blob/master/spec/storage/grid_fs_spec.rb#L97)

Calling to_s on the uploader will return nil if the file does not exist, so checking there first seems to fix the issue.

I'm open to other solutions if you don't like this one.