From 25262bc280e8c9c0e875315958f82230b67cbf35 Mon Sep 17 00:00:00 2001 From: Scott Willson Date: Tue, 16 Oct 2012 19:04:40 -0700 Subject: Fix bug with presence validation of associations. Would incorrectly add duplicated errors when the association was blank. Bug introduced in 1fab518c6a75dac5773654646eb724a59741bc13. --- activerecord/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 5f5c9e4915..186c7bf244 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,10 @@ ## Rails 4.0.0 (unreleased) ## +* Fix bug with presence validation of associations. Would incorrectly add duplicated errors + when the association was blank. Bug introduced in 1fab518c6a75dac5773654646eb724a59741bc13. + + *Scott Willson* + * Fix bug where sum(expression) returns string '0' for no matching records Fixes #7439 -- cgit v1.2.3