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

Fix boolean type #1096

Merged
merged 1 commit into from
Aug 8, 2015
Merged

Fix boolean type #1096

merged 1 commit into from
Aug 8, 2015

Conversation

towanda
Copy link
Contributor

@towanda towanda commented Aug 8, 2015

This PR fixes #1091, also tested with an example grape app to reproduce the bug (see https://github.com/towanda/grape-boolean-example/blob/master/example.rb)

@@ -19,6 +19,7 @@ Next Release
* [#1048](https://github.com/ruby-grape/grape/pull/1048): Only dup `InheritableValues`, remove support for `deep_dup` - [@toddmazierski](https://github.com/toddmazierski/)
* [#1052](https://github.com/ruby-grape/grape/pull/1052): Reset `description[:params]` when resetting validations - [@marshall-lee](https://github.com/marshall-lee).
* [#1088](https://github.com/ruby-grape/grape/pull/1088): Support ActiveSupport 3.x by explicitly requiring Hash#except - [@wagenet](https://github.com/wagenet)
* [#1096](https://github.com/ruby-grape/grape/pull/1096): Fix coercion on booleans - [@towanda](https://github.com/towanda)
Copy link
Member

Choose a reason for hiding this comment

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

Missing a period at the end. Some of the lines above as well, if you don't mind fixing please.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure :)

@dblock
Copy link
Member

dblock commented Aug 8, 2015

Good, see my comments above and squash your commits.

@dblock
Copy link
Member

dblock commented Aug 8, 2015

Merging thanks.

dblock added a commit that referenced this pull request Aug 8, 2015
@dblock dblock merged commit 11d181c into ruby-grape:master Aug 8, 2015
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.

Cannot restrict boolean param
2 participants