app/uploaders/image_uploader.rb
# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted:
Override the directory where uploaded files will be stored.
This is a sensible default for uploaders that are meant to be mounted.
Override the directory where uploaded files will be stored . This is a sensible default for uploaders that are meant to be mounted .
def store_dir
    if model.photoable.class == Candidate
      "candidates"
    else
      "photos/#{model.id}"
    end
  end
def store_dir if model . photoable . class == Candidate "candidates" else "photos/#{model.id}" end end
Override the directory where uploaded files will be stored.
Override the directory where uploaded files will be stored .