Sha256: b324bc5d3dc5768a139e3988566a25269afccbd47f1c2a16e656e2fca07abcf1

Contents?: true

Size: 262 Bytes

Versions: 13

Compression:

Stored size: 262 Bytes

Contents

module Ecom
  module Core
    class TaskAttachmentUploader < 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

13 entries across 13 versions & 1 rubygems

Version Path
ecom_core-1.3.11 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.10 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.9 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.8 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.7 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.6 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.5 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.4 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.3 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.2 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.1 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.3.0 app/uploaders/ecom/core/task_attachment_uploader.rb
ecom_core-1.2.36 app/uploaders/ecom/core/task_attachment_uploader.rb