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

add support for scoped callbcaks within a version block #901

Merged
merged 1 commit into from
Jan 18, 2015

Conversation

kushkella
Copy link

Please refer #898. I haven't really understood in depth how Grape works internally, but I think this should solve the problem. I would really appreciate if you could give some feedback.

I haven't documented this PR since I'm not sure if this is the correct fix. After I receive some feedback, I'll document this PR. Thanks!

@dblock
Copy link
Member

dblock commented Jan 17, 2015

I think this is the perfect fix. Add CHANGELOG, update README and UPGRADING (explicitly call this a regression and that the behavior is fixed in the next version).

@kushkella
Copy link
Author

I've documented everything as you mentioned. It would be great if you could merge this and release a new version of this gem if possible. Thanks once again!

@@ -5,6 +5,7 @@ Next Release
* [#559](https://github.com/intridea/grape/issues/559): Support Rack 1.6.0 to parse requests larger than 128KB - [@myitcv](https://github.com/myitcv).
* [#876](https://github.com/intridea/grape/pull/876): declared(params) now returning Hashie::Mash - [@rodzyn](https://github.com/rodzyn).
* [#879](https://github.com/intridea/grape/pull/879): route_info is not included in params Hash anymore - [@rodzyn](https://github.com/rodzyn).
* [#901](https://github.com/intridea/grape/pull/901): callbacks defined in a version block are only called for the routes defined in that block - [@kushkella](https://github.com/kushkella).
Copy link
Member

Choose a reason for hiding this comment

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

Start with Fix: callbacks ... and fix the extra space after the -, please.

@dblock
Copy link
Member

dblock commented Jan 17, 2015

Made minor comments. Can you please update with those and squash the commits. Thank you.

update CHANGELOG, README and UPGRADING

fix copy
@kushkella
Copy link
Author

I've made the changes, squashed the commits and rebased on master. Thank you.

dblock added a commit that referenced this pull request Jan 18, 2015
add support for scoped callbcaks within a version block
@dblock dblock merged commit e297262 into ruby-grape:master Jan 18, 2015
@dblock
Copy link
Member

dblock commented Jan 18, 2015

Merged, thank you.

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