Skip to content

mikeric/dm-dragonfly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages