This project is archived and is in readonly mode.
has_many: collection.build doesn't allow passing a block to set attributes
-
Michael Trim
Attached a patch with this functionality (implemented in the same way as for collection.create)
-
Michael Trim
(Tagging with patch)
-
Pratik
- State changed from new to incomplete
- Tag set to activerecord, edge, enhancement, has_many, patch
The patch needs tests.
Thanks.
-
Pratik
- State changed from incomplete to duplicate
Duplicate of #502 Block syntax for has_many association.build
