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

Test for nested params problem and also fix #1512

Merged
merged 3 commits into from
Oct 21, 2016

Conversation

krbs
Copy link
Contributor

@krbs krbs commented Oct 19, 2016

No description provided.

@dblock
Copy link
Member

dblock commented Oct 20, 2016

@krbs The bot is telling you to update CHANGELOG :) ^^^

@@ -193,21 +193,25 @@ def declared_param?(param)

alias group requires

def map_params(params, element)
result = if params.is_a?(Array)
Copy link
Member

Choose a reason for hiding this comment

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

you don't need to assign result here, just leave the if block it returns all the right things.

@dblock dblock merged commit aa81fff into ruby-grape:master Oct 21, 2016
@dblock
Copy link
Member

dblock commented Oct 21, 2016

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