File: README.rdoc [dm-adjust-1.2.0 Documentation]

### Home Classes Methods

### Files

- LICENSE
- README.rdoc

### Class Index

Quicksearch

- DataMapper
- DataMapper::Adapters
- DataMapper::Adapters::DataObjectsAdapterAdjust
- DataMapper::Adapters::DataObjectsAdapterAdjust::SQL
- DataMapper::Adapters::InMemoryAdapterAdjust
- DataMapper::Adapters::YamlAdapterAdjust
- DataMapper::Collection
- DataMapper::Model
- DataMapper::Repository
- DataMapper::Resource

No matching classes.

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.
    @child.adjust!(:allowance => -100) # less money for candy and concerts

[Validate]

Generated with the Darkfish Rdoc Generator 2.