From bda4009aeed7b5498c3d361895102d6e1ebeb7a2 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sat, 3 Mar 2007 18:49:43 +0000 Subject: [PATCH] Fix typo in validations documentation. Closes #7669. [ee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/validations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 061fe8e98b..296b486023 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -452,10 +452,10 @@ module ActiveRecord # === Warning # Validate the presence of the foreign key, not the instance variable itself. # Do this: - # validate_presence_of :invoice_id + # validates_presence_of :invoice_id # # Not this: - # validate_presence_of :invoice + # validates_presence_of :invoice # # If you validate the presence of the associated object, you will get # failures on saves when both the parent object and the child object are