aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2017-04-10 10:44:18 -0400
committerJon Moss <me@jonathanmoss.me>2017-04-10 10:44:18 -0400
commit8801108c0f12827832a0082e17d2c087815fd99f (patch)
treeabf93a63e72e619d2c287d73bd9161cff8a8816c /guides/source
parente8ee2187ae910cc368e3a8bf81ed7be745fb575f (diff)
downloadrails-8801108c0f12827832a0082e17d2c087815fd99f.tar.gz
rails-8801108c0f12827832a0082e17d2c087815fd99f.tar.bz2
rails-8801108c0f12827832a0082e17d2c087815fd99f.zip
Pluralize callback
Users could have more than one `before_destroy` callback in their models. [ci skip]
Diffstat (limited to 'guides/source')
-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 1a2c967643..b1705855d0 100644
--- a/guides/source/active_record_callbacks.md
+++ b/guides/source/active_record_callbacks.md
@@ -117,7 +117,9 @@ Here is a list with all the available Active Record callbacks, listed in the sam
WARNING. `after_save` runs both on create and update, but always _after_ the more specific callbacks `after_create` and `after_update`, no matter the order in which the macro calls were executed.
-NOTE: `before_destroy` callback should be placed before `dependent: :destroy` associations (or use the `prepend: true` option), to ensure they execute before the records are deleted by `dependent: :destroy`.
+NOTE: `before_destroy` callbacks should be placed before `dependent: :destroy`
+associations (or use the `prepend: true` option), to ensure they execute before
+the records are deleted by `dependent: :destroy`.
### `after_initialize` and `after_find`