extra_docs/Mongo.md in dragonfly-0.7.7 vs extra_docs/Mongo.md in dragonfly-0.8.0
- old
+ new
@@ -18,11 +18,11 @@
app = Dragonfly[:images]
# Get database name from config/mongoid.yml
db = YAML.load_file(Rails.root.join('config/mongoid.yml'))[Rails.env]['database']
- # Configure to use RMagick, Rails defaults, and the Mongo data store
- app.configure_with(:rmagick)
+ # Configure to use ImageMagick, Rails defaults, and the Mongo data store
+ app.configure_with(:imagemagick)
app.configure_with(:rails) do |c|
c.datastore = Dragonfly::DataStorage::MongoDataStore.new :database => db
end
# Allow all mongoid models to use the macro 'image_accessor'