This project is archived and is in readonly mode.

Changeset [30264bb57b0f54c5bdd7cd23d0a29b36879954a3] 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...

Committed by Durran Jordan

  • M activerecord/lib/active_record/nested_attributes.rb
  • M activerecord/test/cases/nested_attributes_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>