From 8801108c0f12827832a0082e17d2c087815fd99f Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Mon, 10 Apr 2017 10:44:18 -0400 Subject: Pluralize callback Users could have more than one `before_destroy` callback in their models. [ci skip] --- guides/source/active_record_callbacks.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guides/source') 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` -- cgit v1.2.3