I have model1 and model2. I need to upload the images of the two models in two different directories. For now my image_uploader is:
class ImageUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
storage :file
def store_dir
"uploads/images"
end
end
The images of model2 should be stored in uploads/images2. How can I define this?