This project is archived and is in readonly mode.
Changeset [30264bb57b0f54c5bdd7cd23d0a29b36879954a3] by Durran Jordan
Revision 30264bb57b0f54c5bdd7cd23d0a29b36879954a3,
committed by Durran Jordan
· April 5th, 2011 @ 04:28 PM
Destroying records via nested attributes works independent of reject_if:
- When a :_destroy truthiness is provided in the attributes hash, the record should get destroyed regardless of the result of the proc or method supplied to :reject_if. (If :allow_destroy is true)
[#6006 state:committed]
Signed-off-by: Santiago Pastorino
santiago@wyeworks.com
https://github.com/rails/rails/commit/30264bb57b0f54c5bdd7cd23d0a29...
2 changed files
-
M
activerecord/lib/active_record/nested_attributes.rb -
M
activerecord/test/cases/nested_attributes_test.rb