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