Datamapper support for CarrierWave
Ruby
Switch branches/tags
Nothing to show
Latest commit 47d4565 Mar 18, 2013 @solnic solnic Add travis badge
Permalink
Failed to load latest commit information.
lib/carrierwave
spec
.gitignore
.travis.yml
Gemfile
README.rdoc
Rakefile
carrierwave-datamapper.gemspec

README.rdoc

CarrierWave for Datamapper

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.