Sha256: e9c8c32477acfb156090418fd699b77133e7115092818f2edaf3983089b0a7ab
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true class CkeditorAttachmentFileUploader < CarrierWave::Uploader::Base include Ckeditor::Backend::CarrierWave # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir "uploads/ckeditor/attachments/#{model.id}" end # Add a white list of extensions which are allowed to be uploaded. # For images you might use something like this: def extension_white_list Ckeditor.attachment_file_types end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/uploaders/ckeditor_attachment_file_uploader.rb |