diff options
author | Caleb Wright <caleb.wright@gmail.com> | 2012-11-25 23:46:11 -0500 |
---|---|---|
committer | Caleb Wright <caleb.wright@gmail.com> | 2012-11-25 23:46:11 -0500 |
commit | d34fd9fd826fb658cb348eacf8b9edfce06f2b3d (patch) | |
tree | 9bd635dfdb6ba92fa190de7c0a4762a3a4b67b1b /guides/source/upgrading_ruby_on_rails.md | |
parent | 064ae350dc8764dd10f2274a4293780b0210339c (diff) | |
download | rails-d34fd9fd826fb658cb348eacf8b9edfce06f2b3d.tar.gz rails-d34fd9fd826fb658cb348eacf8b9edfce06f2b3d.tar.bz2 rails-d34fd9fd826fb658cb348eacf8b9edfce06f2b3d.zip |
Update guides/source/active_record_validations_callbacks.md
In the expiration_date_cannot_be_in_the_past validation method, use `expiration_date.present?` instead of the double negative `!expiration_date.blank?`. Also join the comparisons with `&&` instead of `and`, which could cause unintended consequences.
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
0 files changed, 0 insertions, 0 deletions