Sha256: fe8fd9238532aab0d48b55ae674b36f167cbdb5f28daec52fd1d90ce21d1e014
Contents?: true
Size: 616 Bytes
Versions: 26
Compression:
Stored size: 616 Bytes
Contents
require 'dragonfly' # Configure Dragonfly.app.configure do plugin :imagemagick secret "9bed83ddef73251c1dbcb247207ba7840ab8f96cba1e4ccb3a353a3bd6e74d98" url_format "/media/:job/:name" datastore :file, root_path: Rails.root.join('public/system/dragonfly', Rails.env), server_root: Rails.root.join('public') 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
26 entries across 26 versions & 1 rubygems