In a grape-entity, I want to show a field only if present (not nil?) with no luck.
I'm trying this code but doesn't work as expected at all, but hiding the field always.
expose :winner, :using => PlayerEntity, :unless => { :winner => nil }
I think the code itself explains what I really need but, as I say, I'm not getting the expected result.
Any clue?