Skip to content

Commit

Permalink
Merge pull request #17172 from rselk/typo
Browse files Browse the repository at this point in the history
fix typo in in define_model_callbacks comment [ci skip]
  • Loading branch information
seuros committed Oct 3, 2014
2 parents 1609ec9 + 9ded108 commit cefb00a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/callbacks.rb
Expand Up @@ -99,7 +99,7 @@ def self.extended(base) #:nodoc:
# 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 = {
Expand Down
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/callbacks.rb
Expand Up @@ -721,7 +721,7 @@ def reset_callbacks(name)
# 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!

Expand Down

0 comments on commit cefb00a

Please sign in to comment.