Please sign in to comment.
Changed the identity_map test for belongs_to methods to look at the
target of the association instead of the association itself. The association doesn't return the object you're looking for, it instead returns a proxy object. Since this isn't actually an instance of the class of the association, it will never be the same object as what you're looking for. if you use #target, however, it gives you access to the underlying object, which should be the same as one called straight from the db.
- Loading branch information...