Sha256: 3e790a208206675bbe392f6a0129b2812cac9701e3775b432814cdf7be4b4f39

Contents?: true

Size: 188 Bytes

Versions: 40

Compression:

Stored size: 188 Bytes

Contents

class ApplicationUploader < CarrierWave::Uploader::Base
  storage :file

  def store_dir
    "system/uploads/#{model.class.model_name.to_s.underscore}/#{mounted_as}/#{model.id}"
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
tramway-core-1.8.1 app/uploaders/application_uploader.rb
tramway-core-1.8 app/uploaders/application_uploader.rb
tramway-core-1.7.4 app/uploaders/application_uploader.rb
tramway-core-1.7.3 app/uploaders/application_uploader.rb
tramway-core-1.7.2 app/uploaders/application_uploader.rb
tramway-core-1.7.1 app/uploaders/application_uploader.rb
tramway-core-1.7 app/uploaders/application_uploader.rb
tramway-core-1.6.4 app/uploaders/application_uploader.rb
tramway-core-1.6.3 app/uploaders/application_uploader.rb
tramway-core-1.6.2 app/uploaders/application_uploader.rb
tramway-core-1.6.1 app/uploaders/application_uploader.rb
tramway-core-1.6 app/uploaders/application_uploader.rb
tramway-core-1.5.5.2 app/uploaders/application_uploader.rb
tramway-core-1.5.5.1 app/uploaders/application_uploader.rb
tramway-core-1.5.5 app/uploaders/application_uploader.rb
tramway-core-1.5.4 app/uploaders/application_uploader.rb
tramway-core-1.5.3 app/uploaders/application_uploader.rb
tramway-core-1.5.2 app/uploaders/application_uploader.rb
tramway-core-1.5.1 app/uploaders/application_uploader.rb
tramway-core-1.5 app/uploaders/application_uploader.rb