From f50430ee3e14fbde1dd83c38f55afe70e567f77d Mon Sep 17 00:00:00 2001 From: Kuldeep Aggarwal Date: Fri, 3 Oct 2014 23:04:01 +0530 Subject: add notes for `define_model_callbacks` [ci skip] --- activemodel/lib/active_model/callbacks.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activemodel/lib') 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 = { -- cgit v1.2.3