aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/absence.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use :present as key for the absence validatior messageRafael Mendonça França2012-12-211-1/+1
|
* Remove ActiveModel::Errors#add_on_present method.Rafael Mendonça França2012-12-211-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 Angel2012-12-151-0/+31
absence of attributes. Add `ActiveModel::Errors#add_on_present` method. Adds error messages to present attributes.