Sha256: 49f12fadec16f9b5532a141ccba83007942f35d8e4bfd1470a600a99fd7181ce

Contents?: true

Size: 730 Bytes

Versions: 13

Compression:

Stored size: 730 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

13 entries across 13 versions & 4 rubygems

Version Path
danabr75-ckeditor-4.1.6 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.6.0 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.5.10.3 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.5.10.2 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.5.10.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.5.7.1 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
glebtv-ckeditor-4.5.7 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor_custom_controller-4.1.6 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.1.6 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.1.5 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.1.4 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.1.3 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb
ckeditor-4.1.2 lib/generators/ckeditor/templates/base/dragonfly/initializer.rb