Skip to content

Commit

Permalink
Removed support for Datamapper, extracted into carrierwave-datamapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed May 18, 2011
1 parent 8b736d8 commit 94e03b1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 214 deletions.
6 changes: 2 additions & 4 deletions README.rdoc
Expand Up @@ -61,7 +61,7 @@ Most of the time you are going to want to use CarrierWave together with an ORM.
It is quite simple to mount uploaders on columns in your model, so you can
simply assign files and get going:

=== ActiveRecord, DataMapper, Sequel, Mongoid
=== ActiveRecord, Sequel, Mongoid

Make sure you are loading CarrierWave after loading your ORM, otherwise you'll
need to require the relevant extension manually, e.g.:
Expand Down Expand Up @@ -90,8 +90,6 @@ automatically be stored when the record is saved.
u.avatar.url # => '/url/to/file.png'
u.avatar.current_path # => 'path/to/file.png'

If using DataMapper, make sure to disable auto_validation on the mounted column.

If using Mongoid, note that embedded documents files aren't saved when parent documents are saved.
You must explicitly call save on embedded documents in order to save their attached files.
You can read more about this {here}[https://github.com/jnicklas/carrierwave/issues#issue/81]
Expand Down Expand Up @@ -129,7 +127,7 @@ make the record invalid instead. Otherwise, an error is raised.

Standard active model validations can be used to ensure a file is uploaded.

mount_uploader :avatar, AvatarUploader
mount_uploader :avatar, AvatarUploader

validate_presence_of :avatar

Expand Down
4 changes: 0 additions & 4 deletions carrierwave.gemspec
Expand Up @@ -30,10 +30,6 @@ Gem::Specification.new do |s|
s.add_development_dependency "fog"
s.add_development_dependency "cucumber"
s.add_development_dependency "sqlite3"
s.add_development_dependency "dm-core", ["1.0.0"]
s.add_development_dependency "dm-validations", ["1.0.0"]
s.add_development_dependency "dm-migrations", ["1.0.0"]
s.add_development_dependency "dm-sqlite-adapter", ["1.0.0"]
s.add_development_dependency "sequel"
s.add_development_dependency "rmagick"
s.add_development_dependency "RubyInline"
Expand Down
37 changes: 0 additions & 37 deletions lib/carrierwave/orm/datamapper.rb

This file was deleted.

169 changes: 0 additions & 169 deletions spec/orm/datamapper_spec.rb

This file was deleted.

0 comments on commit 94e03b1

Please sign in to comment.