aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xactiverecord/lib/active_record/validations.rb4
1 files 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