Sha256: 5152a566fa5c641b00e410577bf3777258f09f8e261916b18cb3d74dfb51ced5

Contents?: true

Size: 313 Bytes

Versions: 35

Compression:

Stored size: 313 Bytes

Contents

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

  #storage :file
  storage :fog

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

  def extension_white_list
    RedactorRails.document_file_types
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
wrgem-0.0.32 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.31 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.30 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.29 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.28 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.27 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.26 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.25 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.24 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.23 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.22 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.21 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.20 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.19 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb
wrgem-0.0.18 lib/generators/wradmin/template/uploaders/redactor_rails_document_uploader.rb