I’m using the as_json method heavily in a couple of models I have in a project I’m working on, and what I’m trying to do is to display those attributes on the fly ONLY if they are not nil/Null … does anyone have any idea how to go about this?
Share
You can override
as_json:Usage: