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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Changeset [603b28c84c1ba1d013247fee450d82f015aaefb3] by Murray Steele

Revision 603b28c84c1ba1d013247fee450d82f015aaefb3, committed by Murray Steele · December 28th, 2009 @ 01:21 PM

Provide a slightly more robust we_can_set_the_inverse_on_this? method for polymorphic belongs_to associations. [#3520 state:resolved]

Also add a new test for polymorphic belongs_to that test direct accessor assignment, not just .replace assignment.

Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/603b28c84c1ba1d013247fee450d82...

2 changed files

  • M activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb
  • M activerecord/test/cases/associations/inverse_associations_test.rb