This project is archived and is in readonly mode.

Changeset [7e06494e32f944f8c99d7d21e17224509332ee6b] by Curtis Hawthorne

April 28th, 2010 @ 05:53 AM

Destroy respects optimistic locking.

Now works with :dependent => :destroy and includes unit tests for that
case. Also includes better error messages when updating/deleting stale
objects.

[#1966 state:committed]

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/7e06494e32f944f8c99d7d21e17224...

Committed by Curtis Hawthorne

  • M activerecord/CHANGELOG
  • M activerecord/lib/active_record/associations.rb
  • M activerecord/lib/active_record/locking/optimistic.rb
  • M activerecord/test/cases/locking_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>