Sha256: fa2920d7eb0d6ba2e5ba9a2f481033ab28edf2c8bb7c2183902617570d079f4a

Contents?: true

Size: 314 Bytes

Versions: 33

Compression:

Stored size: 314 Bytes

Contents

# encoding: utf-8
class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base
  include RedactorRails::Backend::CarrierWave

  # storage :fog
  storage :file

  def store_dir
    "system/redactor_assets/documents/#{model.id}"
  end

  def extension_white_list
    RedactorRails.document_file_types
  end
end

Version data entries

33 entries across 27 versions & 7 rubygems

Version Path
redactor-rails-0.3.6 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.4 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.2 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.2 lib/redactor_rails_document_uploader.rb
redactor-rails-paperclip-0.4.3 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-paperclip-0.4.2.1 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-paperclip-0.4.1 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.3.5 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
vision-0.0.2 app/uploaders/redactor_rails_document_uploader.rb
vision-0.0.1 app/uploaders/redactor_rails_document_uploader.rb
vision-0.0.1.beta2 app/uploaders/redactor_rails_document_uploader.rb
vision-0.0.1.beta app/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.3.3 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb