mikeric / dm-dragonfly

DataMapper extensions to support Dragonfly.

Home Page:http://github.com/mikeric/dm-dragonfly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

DataMapper extensions to support Dragonfly.

http://github.com/mikeric/dm-dragonfly


Languages

Language:Ruby 100.0%