mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user