Parent

Methods

Class/Module Index [+]

Quicksearch

BeispieldateiUploader

Public Instance Methods

root() 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/beispieldatei_uploader.rb, line 14
def root
  Rails.root.join 'public/'
end
store_dir() click to toggle source
# File app/uploaders/beispieldatei_uploader.rb, line 18
def store_dir
  "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.