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:
parent
465752ba6b
commit
41d179b7d6
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue