0.0
No commit activity in last 3 years
No release in over 3 years
DataMapper extensions to support Dragonfly
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.9.0
 Project Readme

dm-dragonfly

DataMapper extensions to support the Rack-based file storing/processing library, Dragonfly.

Synopsis

Require dm-dragonfly and create a new Dragonfly app with the desired configuration options. Define a macro for the Dragonfly app using the added Dragonfly::App#define_dm_macro method. Define this on the base module that you're including in all models (likely a custom module you've written or DataMapper::Resource).

require 'dm-dragonfly'

app = Dragonfly[:attachments]
app.configure_with(:imagemagick)
app.configure_with(:rails)

app.define_dm_macro(BaseModel, :attachment_accessor)