Class: Base
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- Base
- Defined in:
- app/uploaders/base.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#filename ⇒ Object
10 11 12 |
# File 'app/uploaders/base.rb', line 10 def filename "#{secure_token}.#{file.extension}" if original_filename.present? end |
#store_dir ⇒ Object
6 7 8 |
# File 'app/uploaders/base.rb', line 6 def store_dir Iqvoc.upload_path.join(model.class.to_s.downcase) end |