aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-08-19 12:01:41 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-08-19 12:01:41 -0700
commit0d2793198fe0ca11429786aa95bf7abfd17aa9ca (patch)
tree1c8acfd683ecc5a2c1552eb0ca421f4219727a20
parentad71004f02b0e6645dca586dd31d645ca6f6c241 (diff)
parenteb11e350e4f6f8a102762820cf3b328e0870f5e1 (diff)
downloadrails-0d2793198fe0ca11429786aa95bf7abfd17aa9ca.tar.gz
rails-0d2793198fe0ca11429786aa95bf7abfd17aa9ca.tar.bz2
rails-0d2793198fe0ca11429786aa95bf7abfd17aa9ca.zip
Merge pull request #11919 from prathamesh-sonpatki/doc
Change the wording to explain following methods skip callbacks [ci skip]
-rw-r--r--guides/source/active_record_callbacks.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md
index df1dd22971..95eb84dd1f 100644
--- a/guides/source/active_record_callbacks.md
+++ b/guides/source/active_record_callbacks.md
@@ -180,7 +180,7 @@ NOTE: The `find_by_*` and `find_by_*!` methods are dynamic finders generated aut
Skipping Callbacks
------------------
-Just as with validations, it is also possible to skip callbacks. These methods should be used with caution, however, because important business rules and application logic may be kept in callbacks. Bypassing them without understanding the potential implications may lead to invalid data.
+Just as with validations, it is also possible to skip callbacks by using the following methods:
* `decrement`
* `decrement_counter`
@@ -195,6 +195,8 @@ Just as with validations, it is also possible to skip callbacks. These methods s
* `update_all`
* `update_counters`
+These methods should be used with caution, however, because important business rules and application logic may be kept in callbacks. Bypassing them without understanding the potential implications may lead to invalid data.
+
Halting Execution
-----------------