From 9feda929409ab687befaed8d1c9878d94e955adc Mon Sep 17 00:00:00 2001 From: Brent Wheeldon & Nick Monje Date: Fri, 22 Jun 2012 12:09:48 -0400 Subject: AR has a subclass of AM:PresenceValidator. 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 --- activerecord/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index a965fe0494..f41ccfe56f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -31,6 +31,13 @@ *kennyj* +* Changed validates_presence_of on an association so that children objects + do not validate as being present if they are marked for destruction. This + prevents you from saving the parent successfully and thus putting the parent + in an invalid state. + + *Nick Monje & Brent Wheeldon* + * `FinderMethods#exists?` now returns `false` with the `false` argument. *Egor Lynko* -- cgit v1.2.3