made it work with rabl gem