This project is archived and is in readonly mode.
Changeset [66212f69acc3d51af10ff76a18ff4c0bfa305ea5] by Neeraj Singh
Revision 66212f69acc3d51af10ff76a18ff4c0bfa305ea5,
committed by Neeraj Singh
· November 24th, 2010 @ 09:08 PM
If a nested_attribute is being marked for destruction and at the same time an attr_accessor value is being assigned then the value being assigned is being ignored. This patch is a fix for that issue.
[#5939 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/66212f69acc3d51af10ff76a18ff4...
3 changed files
-
M
activerecord/lib/active_record/nested_attributes.rb -
M
activerecord/test/cases/nested_attributes_test.rb -
M
activerecord/test/models/pet.rb