ruby-grape / grape-entity

An API focused facade that sits on top of an object model.
MIT License
721 stars 153 forks source link

Pass the right options when determining whether to expose an attribute using a block #381

Closed magni- closed 11 months ago

magni- commented 11 months ago

As @zverok deduced when opening the issue, the wrong options are getting used when pairing expose_nil: false with a block.

Fixes #378

mscrivo commented 7 months ago

@LeFnord could I trouble you to put out a new release of grape-entity? We've run into this issue. Alternatively, I'd be happy to do the legwork of putting out a release if you or @dblock can add me as a maintainer.

LeFnord commented 7 months ago

yeap … will do one today, ok?

mscrivo commented 7 months ago

yeap … will do one today, ok?

that'd be great, thanks!

LeFnord commented 7 months ago

done