Sha256: 9d87f69295bec5046a5aba90958672835e64e095366122d5893e8f725cd8d6ef
Contents?: true
Size: 639 Bytes
Versions: 4
Compression:
Stored size: 639 Bytes
Contents
require 'dragonfly_svg' # Alchemy CMS Dragonfly configuration. # Pictures Dragonfly.app(:alchemy_pictures).configure do plugin :imagemagick plugin :svg datastore :file, root_path: Rails.root.join('uploads/pictures').to_s, store_meta: false end # Attachments Dragonfly.app(:alchemy_attachments).configure do datastore :file, root_path: Rails.root.join('uploads/attachments').to_s, store_meta: false end # Logger Dragonfly.logger = Rails.logger # Add model functionality if defined?(ActiveRecord::Base) ActiveRecord::Base.extend Dragonfly::Model ActiveRecord::Base.extend Dragonfly::Model::Validations end
Version data entries
4 entries across 4 versions & 1 rubygems