From abe2038d5fea7c545ffddad1ac1252c7cbab6232 Mon Sep 17 00:00:00 2001 From: Abhishek Parokar Date: Tue, 7 Jul 2009 15:29:43 +0530 Subject: Added callback details in "supported options" of has_many association --- activerecord/lib/active_record/associations.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index d3c859ccf4..860d1003a6 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -839,6 +839,12 @@ module ActiveRecord # Specifies the name of the belongs_to association on the associated object that is the inverse of this has_many # association. Does not work in combination with :through or :as options. # See ActiveRecord::Associations::ClassMethods's overview on Bi-directional assocations for more detail. + # [:before_add] + # [:after_add] + # [:before_remove] + # [:after_remove] + # Specifies callback function/Proc which gets called before/after target object is associated / deassociated + # See "Association callbacks" section for more information and example. # # Option examples: # has_many :comments, :order => "posted_on" -- cgit v1.2.3