Sha256: 8f5143c40054f33453b8115c49c29af3202191c4d0fac0a62620bde54391ffda
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
require 'rack/cache' require 'dragonfly' app = Dragonfly[:images] app.configure_with(:imagemagick) app.configure_with(:rails) if defined? ActiveRecord::Base app.define_macro(ActiveRecord::Base, :image_accessor) end if defined? Mongoid::Document app.datastore = Dragonfly::DataStorage::MongoDataStore.new :db => Mongoid.database app.define_macro_on_include(Mongoid::Document, :image_accessor) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attachment_magick-0.3.6 | lib/attachment_magick/dragonfly/init.rb |