intridea/grape — pull request #203 by adamgotterer (2012-07-13 20:09:35+00:00)
Title: Add a check to Entity#serializable_hash to verify an entity exists on a model

Ran into an issue where I was exposing keys on a Mongo object that has a dynamic schema. When processing the entity it would try and access a field that didn't exist and threw and exception. This will verify that the entity can be accessed before trying.