Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use :present as key for the absence validatior message | Rafael Mendonça França | 2012-12-21 | 1 | -1/+1 |
| | |||||
* | Remove ActiveModel::Errors#add_on_present method. | Rafael Mendonça França | 2012-12-21 | 1 | -2/+2 |
| | | | | | | | | We don't need to define a new method in ActiveMode::Errors for each validatior. See https://github.com/rails/rails/commit/d72a07f1d1478db9daed847eadb35bfd840674f6#commitcomment-2325333 | ||||
* | Add `ActiveModel::Validations::AbsenceValidator`, a validator to check the ↵ | Roberto Vasquez Angel | 2012-12-15 | 1 | -0/+31 |
absence of attributes. Add `ActiveModel::Errors#add_on_present` method. Adds error messages to present attributes. |