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 [1313d386dacb580858e5951418a637f4e17cf5c1] by Jon Leighton

Revision 1313d386dacb580858e5951418a637f4e17cf5c1, committed by Jon Leighton · January 4th, 2011 @ 12:24 AM

Make Relation#create_with always merge rather than overwrite, not just when merging two relations. If you wish to overwrite, you can do relation.create_with(nil), or for a specific attribute, relation.create_with(:attr => nil).
https://github.com/rails/rails/commit/1313d386dacb580858e5951418a63...

3 changed files

  • M activerecord/lib/active_record/relation/query_methods.rb
  • M activerecord/lib/active_record/relation/spawn_methods.rb
  • M activerecord/test/cases/relation_scoping_test.rb