You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/active_record_callbacks.md
+39-20Lines changed: 39 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -310,26 +310,45 @@ Skipping Callbacks
310
310
311
311
Just as with validations, it is also possible to skip callbacks by using the following methods:
312
312
313
-
*`decrement!`
314
-
*`decrement_counter`
315
-
*`delete`
316
-
*`delete_all`
317
-
*`delete_by`
318
-
*`increment!`
319
-
*`increment_counter`
320
-
*`insert`
321
-
*`insert!`
322
-
*`insert_all`
323
-
*`insert_all!`
324
-
*`touch_all`
325
-
*`update_column`
326
-
*`update_columns`
327
-
*`update_all`
328
-
*`update_counters`
329
-
*`upsert`
330
-
*`upsert_all`
331
-
332
-
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.
313
+
*[`decrement!`][]
314
+
*[`decrement_counter`][]
315
+
*[`delete`][]
316
+
*[`delete_all`][]
317
+
*[`delete_by`][]
318
+
*[`increment!`][]
319
+
*[`increment_counter`][]
320
+
*[`insert`][]
321
+
*[`insert!`][]
322
+
*[`insert_all`][]
323
+
*[`insert_all!`][]
324
+
*[`touch_all`][]
325
+
*[`update_column`][]
326
+
*[`update_columns`][]
327
+
*[`update_all`][]
328
+
*[`update_counters`][]
329
+
*[`upsert`][]
330
+
*[`upsert_all`][]
331
+
332
+
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. Refer to the method documentation to learn more.
0 commit comments