aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2014-10-03 23:04:01 +0530
committerKuldeep Aggarwal <kd.engineer@yahoo.co.in>2014-10-03 23:04:01 +0530
commitf50430ee3e14fbde1dd83c38f55afe70e567f77d (patch)
treeb13d8af56573b60c6e7f2ae75cecbccbc97075f0 /activemodel/lib/active_model
parent23ef52514edbc1ded7e1a23217a87a5f10bc54b7 (diff)
downloadrails-f50430ee3e14fbde1dd83c38f55afe70e567f77d.tar.gz
rails-f50430ee3e14fbde1dd83c38f55afe70e567f77d.tar.bz2
rails-f50430ee3e14fbde1dd83c38f55afe70e567f77d.zip
add notes for `define_model_callbacks` [ci skip]
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/callbacks.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/callbacks.rb b/activemodel/lib/active_model/callbacks.rb
index b27a39b787..467028f9e8 100644
--- a/activemodel/lib/active_model/callbacks.rb
+++ b/activemodel/lib/active_model/callbacks.rb
@@ -97,6 +97,9 @@ module ActiveModel
# # obj is the MyModel instance that the callback is being called on
# end
# end
+ #
+ # NOTE: +method_name+ passed to `define_model_callbacks` must not end with
+ # `!`, `?` and `=`.
def define_model_callbacks(*callbacks)
options = callbacks.extract_options!
options = {