dwilkie/carrierwave_direct — pull request #55 by kylecrum (2013-01-08 16:48:04+00:00)
Title: Stop urls from double encoding on subsequent saves

If you have a file which needs to have characters encoded to make a proper url (files with spaces for example) they get encoded every time the model saves. This causes some files to be encoded after being encoded, which creates incorrect urls.

In other words, if a file has characters that need to be url encoded, and that model is saved after the file has been uploaded, the file name is stored wrong in the AR column.

This quick fix fixes that.