diff options
author | Abhishek Parokar <abhishek@parolkar.com> | 2009-07-07 15:29:43 +0530 |
---|---|---|
committer | Abhishek Parokar <abhishek@parolkar.com> | 2009-07-07 15:29:43 +0530 |
commit | abe2038d5fea7c545ffddad1ac1252c7cbab6232 (patch) | |
tree | 4d0d919b017b2dc84d7eb7b9cac0b6add9c88e39 | |
parent | 62725b1de80469ab6cd031cad7198e33a17547f7 (diff) | |
download | rails-abe2038d5fea7c545ffddad1ac1252c7cbab6232.tar.gz rails-abe2038d5fea7c545ffddad1ac1252c7cbab6232.tar.bz2 rails-abe2038d5fea7c545ffddad1ac1252c7cbab6232.zip |
Added callback details in "supported options" of has_many association
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 6 |
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" |