Sha256: bce0879a4ec4b7e00510521bb5a78cd9fed5d1899ed3600d62930aae52142a86

Contents?: true

Size: 735 Bytes

Versions: 9

Compression:

Stored size: 735 Bytes

Contents

# 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

9 entries across 9 versions & 2 rubygems

Version Path
glebtv-ckeditor-4.11.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.3.0 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.7.3.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.7.3 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.2.4 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.2.3 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.2.2 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.2.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.2.0 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb