From 652107e2e137cf18cf517d96ee9063660e86d686 Mon Sep 17 00:00:00 2001 From: Thiago Pradi Date: Sun, 2 Sep 2012 18:56:45 -0300 Subject: ConnectionAdapters::Column.type_cast_code should always convert values to integer calling #to_i --- activerecord/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 3c1a400cc6..12a936ff47 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,4 +1,8 @@ ## Rails 3.2.9 (unreleased) +* Fix ConnectionAdapters::Column.type_cast_code integer conversion, + to always convert values to integer calling #to_i. Fixes #7509. + + *Thiago Pradi* * Fix `reset_counters` when there are multiple `belongs_to` association with the same foreign key and one of them have a counter cache. -- cgit v1.2.3