aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
authorPaco Guzman <fjguzman@aspgems.com>2011-02-01 08:37:43 +0100
committerPaco Guzman <fjguzman@aspgems.com>2011-02-01 08:37:43 +0100
commit5a6f651a6a093f69f00fa713648213fb86748297 (patch)
tree87f3195f431827f1f0cf53943ed1b0af881fe780 /activerecord/lib/active_record/callbacks.rb
parentcb3e6c36657d7e335bbb41d3672197963308705e (diff)
downloadrails-5a6f651a6a093f69f00fa713648213fb86748297.tar.gz
rails-5a6f651a6a093f69f00fa713648213fb86748297.tar.bz2
rails-5a6f651a6a093f69f00fa713648213fb86748297.zip
FIX not using _on_create or _on_update callbacks only _create and _update
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rw-r--r--activerecord/lib/active_record/callbacks.rb2
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