Ah! That's an interesting one. It actually has `object` in scope when this gets evaluated from the line below. That's pretty crazy, clearly a bug. I've committed https://github.com/intridea/grape-entity/commit/cb08764f46b231fc5e4ef57a107eefaf0441f702 just to fix that.