aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2016-06-17 23:39:33 +0100
committerEugene Kenny <elkenny@gmail.com>2016-08-15 01:14:08 +0100
commit115e31440cd48a5c6f00675f69b93eb7d4410181 (patch)
tree83b9be3389bc7e6c6c376e7ca17db8e2b46db52b /guides
parentb6c0bc9c8a6a6dc86b315566e3ab52acc1a5377d (diff)
downloadrails-115e31440cd48a5c6f00675f69b93eb7d4410181.tar.gz
rails-115e31440cd48a5c6f00675f69b93eb7d4410181.tar.bz2
rails-115e31440cd48a5c6f00675f69b93eb7d4410181.zip
Update increment! documentation [ci skip]
The `increment!` and `decrement!` methods were recently reimplemented to make them safe to call from multiple connections concurrently. This changed their behaviour in a few ways. Previously they used `update_attribute`, which calls the attribute setter method, runs callbacks, and touches the record. Now they behave more like `update_column`, writing the update to the database directly and bypassing all of those steps.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_callbacks.md2
1 files changed, 0 insertions, 2 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md
index a7975c7772..3a986d858c 100644
--- a/guides/source/active_record_callbacks.md
+++ b/guides/source/active_record_callbacks.md
@@ -202,11 +202,9 @@ The following methods trigger callbacks:
* `create`
* `create!`
-* `decrement!`
* `destroy`
* `destroy!`
* `destroy_all`
-* `increment!`
* `save`
* `save!`
* `save(validate: false)`