This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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