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 [bcd0ef710ec6d2cc6b880c39de0dfacc07df85e4] by Mike Breen

Revision bcd0ef710ec6d2cc6b880c39de0dfacc07df85e4, committed by Mike Breen · September 12th, 2009 @ 02:37 PM

Raise an exception with friendlier error message when attempting to build a polymorphic belongs_to with accepts_nested_attributes_for. [#2318 state:resolved]
Signed-off-by: Eloy Duran eloy.de.enige@gmail.com
http://github.com/rails/rails/commit/bcd0ef710ec6d2cc6b880c39de0dfa...

3 changed files

  • M activerecord/lib/active_record/nested_attributes.rb
  • M activerecord/test/cases/nested_attributes_test.rb
  • M activerecord/test/models/treasure.rb