Sha256: a439aab8b74bc23618a738d2d504376fcd50ed6b323871572d4a8b1d04545e33

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

module Ckeditor
  class AttachmentFileUploader < CarrierWave::Uploader::Base
    include Ckeditor::Backend::CarrierWave

    # Fallback to file system. Files will be attached to emails when sent
    case Georgia.storage
    when :fog then storage(:fog)
    when :cloudinary then storage(:file)
    end

    def store_dir
      "assets/#{model.id}"
    end

    def extension_white_list
      %w(doc docx odt xls ods csv pdf rar zip tar tar.gz ppt pptx) + Ckeditor.image_file_types
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
georgia-0.8.0 app/uploaders/ckeditor/attachment_file_uploader.rb
georgia-0.7.8 app/uploaders/ckeditor/attachment_file_uploader.rb