Sha256: 64435dd105951cedaad4d4ad7c4afdfad1a725e82f43e1962aaf19b6b118cb53

Contents?: true

Size: 242 Bytes

Versions: 59

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

require 'carrierwave'

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

59 entries across 59 versions & 1 rubygems

Version Path
tramway-core-1.17.8 app/uploaders/application_uploader.rb
tramway-core-1.17.7.2 app/uploaders/application_uploader.rb
tramway-core-1.17.7.1 app/uploaders/application_uploader.rb
tramway-core-1.17.7 app/uploaders/application_uploader.rb
tramway-core-1.17.6.1 app/uploaders/application_uploader.rb
tramway-core-1.17.6 app/uploaders/application_uploader.rb
tramway-core-1.17.5 app/uploaders/application_uploader.rb
tramway-core-1.17.4.2 app/uploaders/application_uploader.rb
tramway-core-1.17.4.1 app/uploaders/application_uploader.rb
tramway-core-1.17.4 app/uploaders/application_uploader.rb
tramway-core-1.17.3.1 app/uploaders/application_uploader.rb
tramway-core-1.17.3 app/uploaders/application_uploader.rb
tramway-core-1.17.2.5 app/uploaders/application_uploader.rb
tramway-core-1.17.2.4 app/uploaders/application_uploader.rb
tramway-core-1.17.2.3 app/uploaders/application_uploader.rb
tramway-core-1.17.2.2 app/uploaders/application_uploader.rb
tramway-core-1.17.2.1 app/uploaders/application_uploader.rb
tramway-core-1.17.2 app/uploaders/application_uploader.rb
tramway-core-1.17.1.1 app/uploaders/application_uploader.rb
tramway-core-1.17.1 app/uploaders/application_uploader.rb