Actually, heβs just dead in Carrierwave.
You can do it:
class PrivateUploader < StandardUploader
@fog_public = false
Or (untested, but should work fine):
class PrivateUploader < StandardUploader
def fog_public
if local_condition
true
else
false
end
end
:-)
I have not tried DragonFly, but now that several problems have been fixed in the last 2 months with Carrierwave, this is far superior to everything I've seen. Insanely flexible.
// matte
source
share