Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Datamapper support for CarrierWave

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.

Something went wrong with that request. Please try again.