diff options
author | Marcel Molina <marcel@vernix.org> | 2007-03-03 18:49:43 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-03-03 18:49:43 +0000 |
commit | bda4009aeed7b5498c3d361895102d6e1ebeb7a2 (patch) | |
tree | cb64c4dcc31ab784c99a5daa8bf51bbb22668035 | |
parent | 1dc56ba4815a5d87df34ade0125512a6101d3b87 (diff) | |
download | rails-bda4009aeed7b5498c3d361895102d6e1ebeb7a2.tar.gz rails-bda4009aeed7b5498c3d361895102d6e1ebeb7a2.tar.bz2 rails-bda4009aeed7b5498c3d361895102d6e1ebeb7a2.zip |
Fix typo in validations documentation. Closes #7669. [ee]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 4 |
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 |