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 app/uploaders/attachment_uploader.rb, line 15 def store_dir "#{model.class.to_s.underscore}/#{model.id}" end