Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use `Array#wrap` instead `Array()` | gmarik | 2013-12-31 | 1 | -1/+1 |
| | | | | - since `Array()` calls `to_ary` or `to_a` on a subject - the intent is to 'wrap' subject into an array | ||||
* | Fix bug with presence validation of associations. | Scott Willson | 2012-10-16 | 1 | -2/+4 |
| | | | | Would incorrectly add duplicated errors when the association was blank. Bug introduced in 1fab518c6a75dac5773654646eb724a59741bc13. | ||||
* | update AR::Validations documentation [ci skip] | Francesco Rodriguez | 2012-09-22 | 1 | -9/+8 |
| | |||||
* | AR has a subclass of AM:PresenceValidator. | Brent Wheeldon & Nick Monje | 2012-07-20 | 1 | -0/+64 |
This allows us to mark the parent object as invalid if all associated objects in a presence validated association are marked for destruction. See: https://github.com/rails/rails/issues/6812 |