Class: Spina::FileUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- Spina::FileUploader
- Defined in:
- app/uploaders/spina/file_uploader.rb
Instance Method Summary collapse
Instance Method Details
#store_dir ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/uploaders/spina/file_uploader.rb', line 5 def store_dir if Engine.config.storage == :s3 "#{mounted_as}/#{model.id}" else "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end end |