Sha256: 7bda05e462010900eebdb4f8e86021c48f0d91892b7fa2af556d6edabc79bdbe

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

class CkeditorAttachmentUploader < Shrine
  plugin :validation_helpers

  Attacher.validate do
    validate_max_size 5*1024*1024 # file size must not be greater than 5 MB
    validate_min_size 1024        # file size must not be less than 1 KB
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ckeditor-5.1.3 lib/generators/ckeditor/templates/base/shrine/uploaders/ckeditor_attachment_uploader.rb
ckeditor-5.1.2 lib/generators/ckeditor/templates/base/shrine/uploaders/ckeditor_attachment_uploader.rb