Module: Uploaders::PathSlug
- Included in:
- SimpleFileUploader, SimpleImageUploader
- Defined in:
- app/uploaders/uploaders/path_slug.rb
Overview
Using UUID in file path when available
Instance Method Summary collapse
Instance Method Details
#store_dir ⇒ Object
6 7 8 |
# File 'app/uploaders/uploaders/path_slug.rb', line 6 def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{path_slug}" end |