Sha256: af7d593036e1a33474672bae01cc74bd6f816be9f309915bd12f208f5a613b37

Contents?: true

Size: 265 Bytes

Versions: 9

Compression:

Stored size: 265 Bytes

Contents

module Logistics
  module Core
    class DocumentUploader < CarrierWave::Uploader::Base
      storage :file

      def store_dir
        ENV.fetch('UPLOAD_PREFIX') + "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
      end


    end
  end
end


Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 app/uploaders/logistics/core/document_uploader.rb
logistics_core-21.11.1 app/uploaders/logistics/core/document_uploader.rb
logistics_core-21.08.1 app/uploaders/logistics/core/document_uploader.rb
logistics_core-21.03.1 app/uploaders/logistics/core/document_uploader.rb
logistics_core-20.10.3 app/uploaders/logistics/core/document_uploader.rb
logistics_core-20.10.2 app/uploaders/logistics/core/document_uploader.rb
logistics_core-20.10.1 app/uploaders/logistics/core/document_uploader.rb
logistics_core-20.9.1 app/uploaders/logistics/core/document_uploader.rb
logistics_core-20.8.1 app/uploaders/logistics/core/document_uploader.rb