Add `ActiveModel::Validations::AbsenceValidator`, a validator to check the absence of attributes.
Add `ActiveModel::Errors#add_on_present` method. Adds error messages to present attributes.
Showing
想要评论请 注册 或 登录
Add `ActiveModel::Errors#add_on_present` method. Adds error messages to present attributes.