Sha256: 9208141246c9445392273c2153b62256e1f18d72dfd9487231d9a189f71ea396

Contents?: true

Size: 322 Bytes

Versions: 7

Compression:

Stored size: 322 Bytes

Contents

# encoding: utf-8
class CkeditorAttachmentFileUploader < CarrierWave::Uploader::Base
  include Ckeditor::Backend::CarrierWave

  storage :fog

  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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
georgia-0.7.7 app/uploaders/ckeditor_attachment_file_uploader.rb
georgia-0.7.6 app/uploaders/ckeditor_attachment_file_uploader.rb
georgia-0.7.5 app/uploaders/ckeditor_attachment_file_uploader.rb
georgia-0.7.4 app/uploaders/ckeditor_attachment_file_uploader.rb
georgia-0.7.3 app/uploaders/ckeditor_attachment_file_uploader.rb
georgia-0.7.2 app/uploaders/ckeditor_attachment_file_uploader.rb
georgia-0.7.1 app/uploaders/ckeditor_attachment_file_uploader.rb