Class: Importable::Uploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Defined in:
lib/importable/uploader.rb

Instance Method Summary collapse

Instance Method Details

#extension_white_listObject



5
6
7
# File 'lib/importable/uploader.rb', line 5

def extension_white_list
  %w(xls xlsx)
end

#store_dirObject



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