Sha256: 1262e7c6ce51233698bb513399f466fbe10e7ec7367ca6d9442cf8a5d1c4338c
Contents?: true
Size: 1 KB
Versions: 11
Compression:
Stored size: 1 KB
Contents
require 'dragonfly' # Alchemy CMS Dragonfly configuration. # Pictures pictures = Dragonfly[:alchemy_pictures] pictures.configure_with :imagemagick pictures.configure_with :rails pictures.define_macro ActiveRecord::Base, :image_accessor pictures.configure do |config| config.datastore.configure do |store| store.root_path = Rails.root.join('uploads/pictures').to_s store.store_meta = false end # You only need this if you use Dragonfly url helpers, what you not need to ;) # If you use the Dragonfly url helpers and you have a different mountpoint for Alchemy, # you have to alter this to include the mountpoint. config.url_format = '/pictures/:job/:basename.:format' end # Attachments attachments = Dragonfly[:alchemy_attachments] attachments.configure_with :rails attachments.define_macro ActiveRecord::Base, :file_accessor attachments.configure do |config| config.datastore.configure do |store| store.root_path = Rails.root.join('uploads/attachments').to_s store.store_meta = false end end
Version data entries
11 entries across 11 versions & 1 rubygems