From 0e953c94b152abf0de1c04dba74c22f935bc85c7 Mon Sep 17 00:00:00 2001 From: Alexey Chernenkov Date: Wed, 5 Jun 2013 13:05:53 +0600 Subject: Unify `cattr_*` interface: allow to pass a block to `cattr_reader`. Example: class A cattr_reader(:defr) { 'default_reader_value' } end A.defr # => 'default_reader_value' --- activesupport/CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'activesupport/CHANGELOG.md') diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index bb66b0ffa2..95253567c0 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,14 @@ +* Unify `cattr_*` interface: allow to pass a block to `cattr_reader`. + + Example: + + class A + cattr_reader(:defr) { 'default_reader_value' } + end + A.defr # => 'default_reader_value' + + *Alexey Chernenkov* + * Improved compatibility with the stdlib JSON gem. Previously, calling `::JSON.{generate,dump}` sometimes causes unexpected -- cgit v1.2.3