app/uploaders/image_uploader.rb
# Override the filename of the uploaded files:
# Avoid using model.id or version_name here, see uploader/store.rb for details.
Override the filename of the uploaded files:
Avoid using model.id or version_name here, see uploader/store.rb for details.
Override the filename of the uploaded files : Avoid using model . id or version_name here see uploader / store . rb for details .
def filename(size_px = 'original')
    if original_filename
      if model.photoable.class == Candidate
        candidate_photo_name(size_px)
      else
        "original.jpg"
      end
    end
  end
def filename ( size_px = 'original' ) if original_filename if model . photoable . class == Candidate candidate_photo_name ( size_px ) else "original.jpg" end end end
Override the filename of the uploaded files:
Avoid using model.id or version_name here, see uploader/store.rb for details.
Override the filename of the uploaded files : Avoid using model . id or version_name here see uploader / store . rb for details .
size_px
<not_specific>