Sha256: ea655ef8719b3eca4216a41097c2b222b7db5b7efef0dfbe949076a75f809c99

Contents?: true

Size: 766 Bytes

Versions: 8

Compression:

Stored size: 766 Bytes

Contents

# frozen_string_literal: true

# Load Dragonfly if it isn't loaded already.
require 'dragonfly'

Dragonfly.app(:ckeditor).configure do
  plugin :imagemagick
  secret "<%= SecureRandom.hex(32) %>"

  # Store files in public/uploads/ckeditor. This is not
  # mandatory and the files don't even have to be stored under
  # public. See http://markevans.github.io/dragonfly/data-stores
  datastore :file, root_path: Rails.root.join('public/uploads/ckeditor', Rails.env).to_s,
                   server_root: 'public'

  # Accept asset requests on /ckeditor_assets. Again, this path is
  # not mandatory. Just be sure to include :job somewhere.
  url_format '/uploads/ckeditor/:job/:basename.:format'
end

Rails.application.middleware.use Dragonfly::Middleware, :ckeditor

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ckeditor-5.1.3 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-5.1.2 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-5.1.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.14.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-5.1.0 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.13.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.13.0 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-5.0.0 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb