This project is archived and is in readonly mode.
Changeset [a9b4b5da7c216e4464eeb9dbd0a39ea258d64325] by Durran Jordan
Revision a9b4b5da7c216e4464eeb9dbd0a39ea258d64325,
committed by Durran Jordan
· April 5th, 2011 @ 02:38 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/a9b4b5da7c216e4464eeb9dbd0a39...
2 changed files
-
M
activerecord/lib/active_record/nested_attributes.rb -
M
activerecord/test/cases/nested_attributes_test.rb