Skip to content

Commit d3f16a7

Browse files
committed
Encourage the user to check method docs in AR Callback/Validation Guides
1 parent 17662a4 commit d3f16a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

guides/source/active_record_callbacks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Just as with validations, it is also possible to skip callbacks by using the fol
329329
* [`upsert`][]
330330
* [`upsert_all`][]
331331

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.
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.
333333

334334
[`decrement!`]: https://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-decrement-21
335335
[`decrement_counter`]: https://api.rubyonrails.org/classes/ActiveRecord/CounterCache/ClassMethods.html#method-i-decrement_counter

guides/source/active_record_validations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ The non-bang versions don't: `save` and `update` return `false`, and
141141

142142
The following methods skip validations, and will save the object to the
143143
database regardless of its validity. They should be used with caution.
144+
Refer to the method documentation to learn more.
144145

145146
* [`decrement!`][]
146147
* [`decrement_counter`][]

0 commit comments

Comments
 (0)