Class: RedactorRailsDocumentUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Includes:
RedactorRails::Backend::CarrierWave
Defined in:
lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb

Instance Method Summary collapse

Methods included from RedactorRails::Backend::CarrierWave

included

Instance Method Details

#extension_white_listObject


12
13
14
# File 'lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb', line 12

def extension_white_list
  RedactorRails.document_file_types
end

#store_dirObject


8
9
10
# File 'lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb', line 8

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