Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [7e06494e32f944f8c99d7d21e17224509332ee6b] by Curtis Hawthorne

Revision 7e06494e32f944f8c99d7d21e17224509332ee6b, committed 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...

4 changed files

  • 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