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] --- activesupport/lib/active_support/callbacks.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activesupport/lib/active_support') 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 Audit#save. + # + # NOTE: +method_name+ passed to `define_model_callbacks` must not end with + # `!`, `?` and `=`. def define_callbacks(*names) options = names.extract_options! -- cgit v1.2.3