Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

magni-
Copy link
Contributor

@magni- magni- commented Dec 13, 2023

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

Fixes #378

@magni- magni- force-pushed the pp/378-expose-nil-options branch 2 times, most recently from 0b1360f to 9f672c6 Compare December 13, 2023 07:14
Copy link
Member

@LeFnord LeFnord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @magni- … nice catch

lib/grape_entity/exposure.rb Show resolved Hide resolved
.rubocop.yml Outdated Show resolved Hide resolved
.rubocop.yml Show resolved Hide resolved
@LeFnord LeFnord merged commit 4557193 into ruby-grape:master Dec 13, 2023
5 checks passed
@magni- magni- deleted the pp/378-expose-nil-options branch December 14, 2023 04:39
@mscrivo
Copy link

mscrivo commented Apr 10, 2024

@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
Copy link
Member

LeFnord commented Apr 10, 2024

yeap … will do one today, ok?

@mscrivo
Copy link

mscrivo commented Apr 10, 2024

yeap … will do one today, ok?

that'd be great, thanks!

@LeFnord
Copy link
Member

LeFnord commented Apr 10, 2024

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expose_nil: conflicts with options passing to a block
4 participants