mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix ActiveModel::Validations::Callbacks doc
This commit is contained in:
parent
0631b26316
commit
6e8a1bd0d3
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ module ActiveModel
|
|||
# Provides an interface for any class to have <tt>before_validation</tt> and
|
||||
# <tt>after_validation</tt> callbacks.
|
||||
#
|
||||
# First, extend ActiveModel::Callbacks from the class you are creating:
|
||||
# First, include ActiveModel::Validations::Callbacks from the class you are
|
||||
# creating:
|
||||
#
|
||||
# class MyModel
|
||||
# include ActiveModel::Validations::Callbacks
|
||||
|
|
Loading…
Reference in a new issue