This project is archived and is in readonly mode.
Accept arrays for nested attributes fields_for
-
frap73
+1, please do.
-
Eloy Duran
- Assigned user set to Eloy Duran
-
Eloy Duran
- State changed from new to verified
- Milestone changed from 2.x to 2.3.4
I have verified and applied this patch on my branch of 2-3-stable, which Micheal will look at and merge in before 2.3.4.
http://github.com/alloy/rails/commit/c2e01228fc3fa2b4a238a68a98be49...
Thanks!
-
Eloy Duran
PS: Please do a sanity check if my refactoring of the if-else branches don't break your intention in some way :)
-
Andrew France
That's much neater and as far as I can tell the logic is identical, thanks Eloy!
-
Eloy Duran
Thanks for verifying :)
-
Repository
- State changed from verified to resolved
(from [55bc0c76f8b9d19402ce51623d027feb03dced41]) Allow fields_for on a nested_attributes association to accept an explicit collection to be used. [#2648 Accept arrays for nested attributes fields_for state:resolved] Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/55bc0c76f8b9d19402ce51623d027f... -
Repository
(from [1b78e9bba3bd39c4669ff6c640b7df069185c22c]) Allow fields_for on a nested_attributes association to accept an explicit collection to be used. [#2648 Accept arrays for nested attributes fields_for state:resolved] Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/1b78e9bba3bd39c4669ff6c640b7df...
