diff options
author | Thiago Pinto <tapgyn@gmail.com> | 2014-03-19 21:13:03 -0400 |
---|---|---|
committer | Thiago Pinto <tapgyn@gmail.com> | 2014-03-19 21:13:03 -0400 |
commit | c80ca4c7803b4e8ed7f125ada9acc6b7c499af5f (patch) | |
tree | dc8c9fa419dc7f4a5fe7b320dab0c4126625c4c5 /activerecord/CHANGELOG.md | |
parent | 8cea8ae278c0e0417e5d58a387cc5d31c0590251 (diff) | |
download | rails-c80ca4c7803b4e8ed7f125ada9acc6b7c499af5f.tar.gz rails-c80ca4c7803b4e8ed7f125ada9acc6b7c499af5f.tar.bz2 rails-c80ca4c7803b4e8ed7f125ada9acc6b7c499af5f.zip |
ActiveRecord#touch should accept multiple attributes #14423
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index f5b8a3145d..b6748eb24d 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,15 @@ +* `ActiveRecord#touch` should accept many attributes at once. Suggested at #14423. + + Example: + + photo = Photo.last + photo.touch(:signed_at, :sealed_at) + photo.updated_at # was changed + photo.signed_at # was changed + photo.sealed_at # was changed + + *James Pinto* + * Reap connections that were checked out by now-dead threads, instead of waiting until they disconnect by themselves. Before this change, a suitably constructed series of short-lived threads could starve |