Sha256: 1077701c2d52d8592388f8a600a65084105137babb2dfd786dd7bc25b74cd12a
Contents?: true
Size: 552 Bytes
Versions: 9
Compression:
Stored size: 552 Bytes
Contents
require 'dragonfly' # Configure Dragonfly.app.configure do plugin :imagemagick, convert_command: `which convert`.strip.presence || '/usr/local/bin/convert', identify_command: `which identify`.strip.presence || '/usr/local/bin/identify' protect_from_dos_attacks true secret '<%= generate_secret %>' url_format '/images/dynamic/:job/:basename.:ext' fetch_file_whitelist /public/ fetch_url_whitelist /.+/ end # Logger Dragonfly.logger = Rails.logger # Mount as middleware Rails.application.middleware.use Dragonfly::Middleware
Version data entries
9 entries across 9 versions & 1 rubygems