Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Datamapper support for CarrierWave
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.8.0
~> 1.1
 Project Readme

CarrierWave for Datamapper¶ ↑

<img src=“https://travis-ci.org/jnicklas/carrierwave-datamapper.png?branch=master” alt=“Build Status” />

This gem adds support for DataMapper to CarrierWave, see the CarrierWave documentation for more detailed usage instructions.

Installation¶ ↑

gem install carrierwave-datamapper

Using bundler:

gem 'carrierwave-datamapper', :require => 'carrierwave/datamapper'

Usage¶ ↑

require 'carrierwave/datamapper'

class ImageUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick
end

class Image
  include DataMapper::Resource

  property :id, Serial

  mount_uploader :source, ImageUploader
end

This used to be part of CarrierWave but has been extracted.