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 [70b8ea4fa6f432919340345ae0d5af6aa8f87ec8] by Hongli Lai (Phusion)

Revision 70b8ea4fa6f432919340345ae0d5af6aa8f87ec8, committed by Hongli Lai (Phusion) · September 23rd, 2008 @ 07:32 PM

Make AssociationCollection start transactions in the correct database.

AssociationCollection now starts transactions by calling AssociationCollection#transaction instead of @owner.transaction or @reflection.klass.transaction.

Signed-off-by: Michael Koziarski michael@koziarski.com

[#1081 state:committed] http://github.com/rails/rails/co...

5 changed files

  • M activerecord/lib/active_record/associations/association_collection.rb
  • M activerecord/lib/active_record/associations/has_many_through_association.rb
  • M activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
  • M activerecord/test/cases/associations/has_many_associations_test.rb
  • M activerecord/test/cases/associations/has_many_through_associations_test.rb