Skip to content

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

Closed
wants to merge 6 commits into from
Closed

Allow given to receive a proc #1442

wants to merge 6 commits into from

Conversation

glaucocustodio
Copy link
Contributor

Implements #1395.

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

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".

@dblock
Copy link
Member

dblock commented Jul 19, 2016

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.

@glaucocustodio
Copy link
Contributor Author

glaucocustodio commented Jul 19, 2016

I failed to squash, git created two more commits. I will open a new PR with all the changes just in one commit.

@glaucocustodio glaucocustodio deleted the allow-given-to-receive-a-proc branch July 19, 2016 13:27
@glaucocustodio
Copy link
Contributor Author

@dblock please take a look at #1443, you can delete this closed PR.

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.

2 participants