From 00ee990443189649e481b2c30945e7a1029d8280 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 5 Jun 2009 18:25:07 -0700 Subject: JSON: split encoding and coercion --- activesupport/CHANGELOG | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport/CHANGELOG') diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 93e0f1aa24..9c5803c52a 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *Edge* +* JSON: +Object#to_json+ calls +as_json+ to coerce itself into something natively encodable like +Hash+, +Integer+, or +String+. Override +as_json+ instead of +to_json+ so you're JSON library agnostic. [Jeremy Kemper] + * String #to_time and #to_datetime: handle fractional seconds #864 [Jason Frey] * Update bundled TZInfo to v0.3.13 [Geoff Buesing] -- cgit v1.2.3