Sha256: c593713e9cb413ad352e2727dc8924822acf14148c3e547320bb6898c70ccf8c
Contents?: true
Size: 734 Bytes
Versions: 3
Compression:
Stored size: 734 Bytes
Contents
require 'dragonfly' # Configure Dragonfly.app.configure do plugin :imagemagick protect_from_dos_attacks true secret "7fb765cbc9f1d92d5d1a56a43193d34d4f9b54dced3e62cb4e42f25d2500dd0f" convert_command = `which convert`.strip.presence || "/usr/local/bin/convert" identify_command = `which identify`.strip.presence || "/usr/local/bin/identify" url_format '/uploads/assets/:job/:name' datastore Smithy::Asset.dragonfly_datastore end # Logger Dragonfly.logger = Rails.logger # Mount as middleware Rails.application.middleware.use Dragonfly::Middleware # Add model functionality if defined?(ActiveRecord::Base) ActiveRecord::Base.extend Dragonfly::Model ActiveRecord::Base.extend Dragonfly::Model::Validations end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smithycms-0.4.5 | config/initializers/dragonfly.rb |
smithycms-0.4.4 | config/initializers/dragonfly.rb |
smithycms-0.4.3 | config/initializers/dragonfly.rb |