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-1.1.1 app/uploaders/esr_file_uploader.rb
vesr-1.1.0 app/uploaders/esr_file_uploader.rb
vesr-1.0.1 app/uploaders/esr_file_uploader.rb
vesr-1.0.0 app/uploaders/esr_file_uploader.rb
vesr-0.13.1 app/uploaders/esr_file_uploader.rb
vesr-0.13.0 app/uploaders/esr_file_uploader.rb
vesr-0.12.7 app/uploaders/esr_file_uploader.rb
vesr-0.12.6 app/uploaders/esr_file_uploader.rb
vesr-0.12.5 app/uploaders/esr_file_uploader.rb
vesr-0.12.4 app/uploaders/esr_file_uploader.rb
vesr-0.12.3 app/uploaders/esr_file_uploader.rb
vesr-0.12.2 app/uploaders/esr_file_uploader.rb
vesr-0.12.1 app/uploaders/esr_file_uploader.rb
vesr-0.12.0 app/uploaders/esr_file_uploader.rb
vesr-0.11.9 app/uploaders/esr_file_uploader.rb
vesr-0.11.8 app/uploaders/esr_file_uploader.rb
vesr-0.11.7 app/uploaders/esr_file_uploader.rb
vesr-0.11.6 app/uploaders/esr_file_uploader.rb
vesr-0.11.5 app/uploaders/esr_file_uploader.rb
vesr-0.11.4 app/uploaders/esr_file_uploader.rb