diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-10-03 23:04:01 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-10-03 23:04:01 +0530 |
commit | f50430ee3e14fbde1dd83c38f55afe70e567f77d (patch) | |
tree | b13d8af56573b60c6e7f2ae75cecbccbc97075f0 /activesupport/lib | |
parent | 23ef52514edbc1ded7e1a23217a87a5f10bc54b7 (diff) | |
download | rails-f50430ee3e14fbde1dd83c38f55afe70e567f77d.tar.gz rails-f50430ee3e14fbde1dd83c38f55afe70e567f77d.tar.bz2 rails-f50430ee3e14fbde1dd83c38f55afe70e567f77d.zip |
add notes for `define_model_callbacks` [ci skip]
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 0c8c1d7dfb..21a2f54bc1 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -719,6 +719,9 @@ module ActiveSupport # define_callbacks :save, scope: [:name] # # would call <tt>Audit#save</tt>. + # + # NOTE: +method_name+ passed to `define_model_callbacks` must not end with + # `!`, `?` and `=`. def define_callbacks(*names) options = names.extract_options! |