From 41d179b7d67f01234b28fd6e4f6dc9cf8ef2c8db Mon Sep 17 00:00:00 2001 From: Ray Baxter Date: Sat, 10 Sep 2011 13:50:33 -0700 Subject: [PATCH] Revert "Fixed syntax error in "block setting of attributes" example." Code and CHANGELOGS can't be edited in docrails. You'll need to make this change in rails/rails. This reverts commit 465752ba6bf2cc124dc78f4a9eb7a1d74dd8c868. --- activerecord/CHANGELOG | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index acdb40592f..143de81925 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -62,7 +62,7 @@ a URI that specifies the connection configuration. For example: has_one :account end - user.build_account{ |a| a.credit_limit = 100.0 } + user.build_account{ |a| a.credit_limit => 100.0 } The block is called after the instance has been initialized. [Andrew White]