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 [6a74ee7f4deea4a44520d3fcc9120e0bb848823f] by Murray Steele

Revision 6a74ee7f4deea4a44520d3fcc9120e0bb848823f, committed by Murray Steele · December 28th, 2009 @ 02:12 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/6a74ee7f4deea4a44520d3fcc9120e...

2 changed files

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