Sha256: 479be992b4800cb0b9d1c3227f2ac97dd649f7f69728c4c3ae0c434dd5156c66

Contents?: true

Size: 386 Bytes

Versions: 30

Compression:

Stored size: 386 Bytes

Contents

# encoding: utf-8

class EsrFileUploader < CarrierWave::Uploader::Base
  # Choose what kind of storage to use for this uploader:
  storage :file

  # Override the directory where uploaded files will be stored.
  # This is a sensible default for uploaders that are meant to be mounted:
  def store_dir
    root.join(model.class.to_s.underscore, mounted_as.to_s, model.id.to_s)
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
vesr-0.11.3 app/uploaders/esr_file_uploader.rb
vesr-0.11.2 app/uploaders/esr_file_uploader.rb
vesr-0.11.1 app/uploaders/esr_file_uploader.rb
vesr-0.11.0 app/uploaders/esr_file_uploader.rb
vesr-0.10.1 app/uploaders/esr_file_uploader.rb
vesr-0.10.0 app/uploaders/esr_file_uploader.rb
vesr-0.9.0 app/uploaders/esr_file_uploader.rb
vesr-0.8.2 app/uploaders/esr_file_uploader.rb
vesr-0.8.1 app/uploaders/esr_file_uploader.rb
vesr-0.8.0 app/uploaders/esr_file_uploader.rb