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 [bdfddb09d7a87498a9733617d186378ab829dac5] by toby cabot

Revision bdfddb09d7a87498a9733617d186378ab829dac5, committed by toby cabot · October 21st, 2010 @ 01:23 AM

bug 1108: yield to block provided to find_or_create_by_x

Starting in 2.3.8 we stopped yielding to blocks passed in to
find_or_create_by_x methods. This patch restores that behavior and
adds a case to test it.
http://github.com/rails/rails/commit/bdfddb09d7a87498a9733617d18637...

2 changed files

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