lardawge/carrierwave_backgrounder — pull request #157 by johanneswuerbach (2013-10-03 16:50:50+00:00)
Title: Save a changed filename

When generating unique filenames for every file, the record needs to be saved after `recreate_versions!`. This PR saves the record, when the filename stored in the db is different then in the current uploader (filename changed).

The carrierwave documentation has an entry about this here: https://github.com/carrierwaveuploader/carrierwave/blob/master/README.md#recreating-versions