diff options
author | CassioMarques <cassiommc@gmail.com> | 2008-11-12 21:42:52 -0200 |
---|---|---|
committer | CassioMarques <cassiommc@gmail.com> | 2008-11-12 21:42:52 -0200 |
commit | 0fbfd4fe0d79d3f9c6fb91f5458fb4f23f768dd7 (patch) | |
tree | 2da32c3ae2fbec7f31ea8d838f8a47a27657cf89 /railties | |
parent | fdd1ef5ca26de29eee3e5246e609c883ea3d9319 (diff) | |
download | rails-0fbfd4fe0d79d3f9c6fb91f5458fb4f23f768dd7.tar.gz rails-0fbfd4fe0d79d3f9c6fb91f5458fb4f23f768dd7.tar.bz2 rails-0fbfd4fe0d79d3f9c6fb91f5458fb4f23f768dd7.zip |
Fix typo on 'custom validations', at AR validation and callbacks guide
Diffstat (limited to 'railties')
-rw-r--r-- | railties/doc/guides/source/activerecord_validations_callbacks.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/activerecord_validations_callbacks.txt b/railties/doc/guides/source/activerecord_validations_callbacks.txt index 3da4f0361b..fd6eb86b0b 100644 --- a/railties/doc/guides/source/activerecord_validations_callbacks.txt +++ b/railties/doc/guides/source/activerecord_validations_callbacks.txt @@ -387,7 +387,7 @@ If your validation rules are too complicated and you want to break it in small m [source, ruby] ------------------------------------------------------------------ class Invoice < ActiveRecord::Base - validate :expiration_date_cannot_be_in_the_past, :discount_cannot_be_be_more_than_total_value + validate :expiration_date_cannot_be_in_the_past, :discount_cannot_be_more_than_total_value def expiration_date_cannot_be_in_the_past errors.add(:expiration_date, "can't be in the past") if !expiration_date.blank? and expiration_date < Date.today |