public
Rubygem
Description: Extras for DataMapper, including bridges to DataObjects::Migrations and Merb::DataMapper
Homepage: http://datamapper.org
Clone URL: git://github.com/sam/dm-more.git
monki (author)
Fri Jul 25 09:33:36 -0700 2008
commit  1825702bee4da1e28dee08810a866472f1e2fb16
tree    02d7d9aee265bd706d3b8d88a66b7b27cc92cf15
parent  690b1ecdcc468adc782794f358391a4e0da1a244
dm-more / dm-adjust
name age message
..
file History.txt Wed Jul 16 08:42:00 -0700 2008 Hoe-ification for dm-adjust, dm-aggregates, dm-... [bernerdschaefer]
file LICENSE Sat Jun 14 15:23:57 -0700 2008 adding dm-adjust to be able to increment and de... [Sindre Aarsaether]
file Manifest.txt Wed Jul 16 08:42:00 -0700 2008 Hoe-ification for dm-adjust, dm-aggregates, dm-... [bernerdschaefer]
file README.txt Wed Jul 16 08:42:00 -0700 2008 Hoe-ification for dm-adjust, dm-aggregates, dm-... [bernerdschaefer]
file Rakefile Sat Nov 22 01:08:15 -0800 2008 Adjusted dm-core dependency to be ~> [dkubb]
file TODO Sat Jun 14 15:23:57 -0700 2008 adding dm-adjust to be able to increment and de... [Sindre Aarsaether]
directory lib/ Sat Nov 22 01:08:15 -0800 2008 Adjusted dm-core dependency to be ~> [dkubb]
directory spec/ Mon Nov 17 20:16:07 -0800 2008 Updated do and dm-core dependencies to ~>0.9.7 [dkubb]
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