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 [85770ec7139fcba985310d239d4c57cfe6f6c60b] by Pratik Naik

Revision 85770ec7139fcba985310d239d4c57cfe6f6c60b, committed by Pratik Naik · December 27th, 2009 @ 09:16 AM

Make Model.find_or_create_by* and find_or_initialize_by* use relations and remove method caching
http://github.com/rails/rails/commit/85770ec7139fcba985310d239d4c57...

3 changed files

  • M activerecord/lib/active_record/base.rb
  • M activerecord/lib/active_record/relation.rb
  • M activerecord/test/cases/finder_test.rb