dwilkie/carrierwave_direct — pull request #128 by lsimoneau (2014-03-05 10:56:52+00:00)
Title: Cache policy attribute of uploader

Without such caching, calling `signature` computes a new policy, which may be different to a previous or subsequent retrieval of the policy, so the signature may not match what is expected.

This addresses #127 which I opened earlier.

I don't see any particular downside to this caching, since these attributes are only used to build the form. However, if you have any objections I'd be happy to revise the approach I've taken here.