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.
Showing
想要评论请 注册 或 登录