-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow given to receive a proc #1442
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
Allow given to receive a proc #1442
Conversation
@@ -8,8 +8,9 @@ | |||
* [#1390](https://github.com/ruby-grape/grape/pull/1390): Allow inserting middleware at arbitrary points in the middleware stack - [@Rosa](https://github.com/Rosa). | |||
* [#1366](https://github.com/ruby-grape/grape/pull/1366): Store `message_key` on `Grape::Exceptions::Validation` - [@mkou](https://github.com/mkou). | |||
* [#1398](https://github.com/ruby-grape/grape/pull/1398): Added `rescue_from :grape_exceptions` - allow Grape to use the built-in `Grape::Exception` handing and use `rescue :all` behavior for everything else - [@mmclead](https://github.com/mmclead). | |||
* [#1442](https://github.com/ruby-grape/grape/pull/1442): Allow `given` to receive a `Proc` to check more conditions other than presence only - [@glaucocustodio](https://github.com/glaucocustodio) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing a period at the end. Also maybe just shorten it to "Extended given
to receive a Proc
".
Code is good. My comments are all about the text. Amend and I'll merge. Appreciate if you could squash the commits to to keep the git history clean. |
…odio/grape into allow-given-to-receive-a-proc
I failed to squash, git created two more commits. I will open a new PR with all the changes just in one commit. |
Implements #1395.