Class: Importable::Uploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- Importable::Uploader
- Defined in:
- lib/importable/uploader.rb
Instance Method Summary collapse
Instance Method Details
#extension_white_list ⇒ Object
5 6 7 |
# File 'lib/importable/uploader.rb', line 5 def extension_white_list %w(xls xlsx) end |
#store_dir ⇒ Object
9 10 11 |
# File 'lib/importable/uploader.rb', line 9 def store_dir "#{Rails.root}/tmp/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.mapper_name}/#{model.id}" end |