jnicklas/carrierwave — Issue #543: Storage type (CarrierWave::Uploader::Base._storage) is a class variable
Author: abradner
Created: 2011-11-29 06:05:02+00:00
State: open

Any reason why this is the case? It seems strange given that everything else is customisable. Having had a decent plough through the code I can't see any reason why it should be.

It's causing a problem for me because I want to have a mounted uploader decide where to store a file (either grid_fs or filesystem in this example) and there doesn't seem to be any workaround.

You also can't just change the class variable with something like the before_save callback because this will cause concurrency issues in a multi-threaded production server.