aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-06-08 22:39:30 +0200
committerXavier Noria <fxn@hashref.com>2010-06-08 22:39:30 +0200
commitf1c0bcfbb6878456d3d749a7c14f4753b53b23b6 (patch)
tree4c010aa91874e1ef031d413c167161e29f2bc357 /activerecord
parente50bf67ffadc03c2ee175764f8017296313a4fcf (diff)
parent751f79a03351f1f0d21436b2b947352b97ded093 (diff)
downloadrails-f1c0bcfbb6878456d3d749a7c14f4753b53b23b6.tar.gz
rails-f1c0bcfbb6878456d3d749a7c14f4753b53b23b6.tar.bz2
rails-f1c0bcfbb6878456d3d749a7c14f4753b53b23b6.zip
Merge remote branch 'docrails/master'
Diffstat (limited to 'activerecord')
-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 498836aca4..44fee12001 100644
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -31,7 +31,7 @@ module ActiveRecord
# class CreditCard < ActiveRecord::Base
# # Strip everything but digits, so the user can specify "555 234 34" or
# # "5552-3434" or both will mean "55523434"
- # def before_validation_on_create
+ # before_validation(:on => :create) do
# self.number = number.gsub(/[^0-9]/, "") if attribute_present?("number")
# end
# end