This project is archived and is in readonly mode.

Changeset [1313d386dacb580858e5951418a637f4e17cf5c1] 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...

Committed by Jon Leighton

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>