diff options
author | Paco Guzman <fjguzman@aspgems.com> | 2011-02-01 08:37:43 +0100 |
---|---|---|
committer | Paco Guzman <fjguzman@aspgems.com> | 2011-02-01 08:37:43 +0100 |
commit | 5a6f651a6a093f69f00fa713648213fb86748297 (patch) | |
tree | 87f3195f431827f1f0cf53943ed1b0af881fe780 | |
parent | cb3e6c36657d7e335bbb41d3672197963308705e (diff) | |
download | rails-5a6f651a6a093f69f00fa713648213fb86748297.tar.gz rails-5a6f651a6a093f69f00fa713648213fb86748297.tar.bz2 rails-5a6f651a6a093f69f00fa713648213fb86748297.zip |
FIX not using _on_create or _on_update callbacks only _create and _update
-rw-r--r-- | activerecord/lib/active_record/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb index 64ffcb11fe..87b77313bb 100644 --- a/activerecord/lib/active_record/callbacks.rb +++ b/activerecord/lib/active_record/callbacks.rb @@ -31,7 +31,7 @@ module ActiveRecord # # That's a total of twelve callbacks, which gives you immense power to react and prepare for each state in the # Active Record life cycle. The sequence for calling <tt>Base#save</tt> for an existing record is similar, - # except that each <tt>_on_create</tt> callback is replaced by the corresponding <tt>_on_update</tt> callback. + # except that each <tt>_create</tt> callback is replaced by the corresponding <tt>_update</tt> callback. # # Examples: # class CreditCard < ActiveRecord::Base |