aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAbhishek Parokar <abhishek@parolkar.com>2009-07-07 15:29:43 +0530
committerAbhishek Parokar <abhishek@parolkar.com>2009-07-07 15:29:43 +0530
commitabe2038d5fea7c545ffddad1ac1252c7cbab6232 (patch)
tree4d0d919b017b2dc84d7eb7b9cac0b6add9c88e39 /activerecord
parent62725b1de80469ab6cd031cad7198e33a17547f7 (diff)
downloadrails-abe2038d5fea7c545ffddad1ac1252c7cbab6232.tar.gz
rails-abe2038d5fea7c545ffddad1ac1252c7cbab6232.tar.bz2
rails-abe2038d5fea7c545ffddad1ac1252c7cbab6232.zip
Added callback details in "supported options" of has_many association
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/associations.rb6
1 files changed, 6 insertions, 0 deletions
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 <tt>belongs_to</tt> association on the associated object that is the inverse of this <tt>has_many</tt>
# association. Does not work in combination with <tt>:through</tt> or <tt>:as</tt> 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"