Sha256: 2b31d00bf787f4330cd9e20ed19aceec898b4aee0f98fe07f78e80cf0456919d
Contents?: true
Size: 704 Bytes
Versions: 5
Compression:
Stored size: 704 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" secret "7fb765cbc9f1d92d5d1a56a43193d34d4f9b54dced3e62cb4e42f25d2500dd0f" 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
5 entries across 5 versions & 1 rubygems