Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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 History.txt
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Manifest.txt
Octocat-spinner-32 README.txt
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
README.txt
dm-adjust
=============

DataMapper plugin providing methods to increment and decrement properties

It provides the following function (for collections and resources):

== adjust

 Person.adjust(:salary => 1000) # increases the salary of all people with 1000.
 Person.all(:age.gte => 40).adjust(:salary => 2000) # increase salary of them oldies.
 Children.adjust(:allowance => -100) # less money for candy and concerts
Something went wrong with that request. Please try again.