1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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 465752ba6b.
This commit is contained in:
Ray Baxter 2011-09-10 13:50:33 -07:00
parent 465752ba6b
commit 41d179b7d6

View file

@ -62,7 +62,7 @@ a URI that specifies the connection configuration. For example:
has_one :account has_one :account
end 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] The block is called after the instance has been initialized. [Andrew White]