zilkey/active_hash — pull request #50 by desmondmonster (2012-07-15 16:53:39+00:00)
Title: Validate uniqueness of IDs

Hey, I noticed a bug in the tests where two records are created with the same id. This breaks Active Hash's ability to find unique records by id, so I fixed the test and implemented a cache to check if the new record's id is already present. This cache would be superseded by the revised data structure we discussed offline, but I wanted to submit a patch while those details are worked out.