Sha256: c0e88adf8ddf32625615fc5262d128d9e9921161b4e9204b9dd7d46421b8f7a2

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dm-adjust-0.9.2 README
dm-adjust-0.9.3 README.txt
dm-adjust-0.9.4 README.txt
dm-adjust-0.9.5 README.txt
dm-adjust-0.9.6 README.txt
dm-adjust-0.9.7 README.txt