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.

ActiveRecord::AssociationsAssociationCollection.load_target doesn't respect protected attributes

#5802

load_target uses mass assignment, which means that protected attributes don't get updated with their correct db values during the merging process. What's worse, this is a silent failure (except for a log warning depending on the env) so it's really tricky to track down.

This patch provides a test case and a fix.

Reported by Brian Palmer · October 13th, 2010 @ 10:12 PM

State: resolved
Milestone: 3.1
Assigned to: Aaron Patterson Aaron Patterson
Importance: Low