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-fixes-0.5.0.1 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
rdrails5-0.5.1 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails4-0.5.0 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.5.0 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.4.5 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.4.4 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.7 lib/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.7 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.6 lib/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.6 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.5 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.5 lib/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.4 lib/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.4 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.3 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
th_simple_content_management-0.2.3 lib/redactor_rails_document_uploader.rb
redactor-rails-0.4.3 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.4.2 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.4.1 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb
redactor-rails-0.3.7 lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb