class AttachmentUploader

Public Instance Methods

store_dir() click to toggle source

Override the directory where uploaded files will be stored. This is a sensible default for uploaders that are meant to be mounted:

# File lib/media_magick/attachment_uploader.rb, line 13
def store_dir
  "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end