This project is archived and is in readonly mode.

#229 ✓resolved
Lawrence Pit

raise_on_type_mismatch : expected User, got User

Reported by Lawrence Pit | May 21st, 2008 @ 02:49 AM

This issue is more than a year old and already extensively discussed at

Basically: when you have a model that has an association with another model that is part of a plugin, and on the second request your model gets reloaded in the development environment while the model in the plugin doesn't get reloaded, then assigning a new value to the association will result in an error like:

ActiveRecord::AssociationTypeMismatch: User expected, got User

Attached is a patch including a test to prove this case.

Comments and changes to this ticket

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=""></a>

Referenced by