diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-06 02:31:35 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-06 02:31:35 +0000 |
commit | d1abe806c54a0c0c845476715e47c52ca48cabab (patch) | |
tree | e80b7b355d37a2922b6f6d275b973249e4d27433 /activesupport | |
parent | fd48e70d6cc450cd2c5baa8eb7567246d59b34d1 (diff) | |
download | rails-d1abe806c54a0c0c845476715e47c52ca48cabab.tar.gz rails-d1abe806c54a0c0c845476715e47c52ca48cabab.tar.bz2 rails-d1abe806c54a0c0c845476715e47c52ca48cabab.zip |
Added Base#toggle(attribute) and Base#toggle!(attribute) that makes it easier to flip a switch or flag. Added Base#increment!(attribute) and Base#decrement!(attribute) that also saves the records. Added Base#increment(attribute) and Base#decrement(attribute) that encapsulates the += 1 and -= 1 patterns.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
0 files changed, 0 insertions, 0 deletions