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 [ce5af2fefe0e447669fa8b7031f07558bfc84f4a] by Curtis Hawthorne

Revision ce5af2fefe0e447669fa8b7031f07558bfc84f4a, committed by Curtis Hawthorne · April 28th, 2010 @ 05:52 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/ce5af2fefe0e447669fa8b7031f075...

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