Find file History
Pull request Compare This branch is 968 commits ahead of cardmagic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
lib
spec
History.txt
LICENSE
Manifest.txt
README.txt
Rakefile
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