fix typo in in define_model_callbacks comment [ci skip]

This commit is contained in:
Ryan Selk 2014-10-03 15:31:14 -06:00
parent 1609ec9879
commit 9ded108e84
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ module ActiveModel
# end
#
# NOTE: +method_name+ passed to `define_model_callbacks` must not end with
# `!`, `?` and `=`.
# `!`, `?` or `=`.
def define_model_callbacks(*callbacks)
options = callbacks.extract_options!
options = {

View File

@ -721,7 +721,7 @@ module ActiveSupport
# would call <tt>Audit#save</tt>.
#
# NOTE: +method_name+ passed to `define_model_callbacks` must not end with
# `!`, `?` and `=`.
# `!`, `?` or `=`.
def define_callbacks(*names)
options = names.extract_options!