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

Accept :using as a string #185

Merged
merged 1 commit into from
Dec 16, 2014
Merged

Conversation

jhollinger
Copy link
Contributor

grape-entity's documentation specifies that :using may be a class or a string (https://github.com/intridea/grape-entity#exposing-with-a-presenter). Currently grape-swagger only supports classes; using strings raises an exception. I've added support for strings and a test.

@dblock
Copy link
Member

dblock commented Dec 15, 2014

This is good, needs CHANGELOG and maybe a README update, please.

jhollinger added a commit to jhollinger/grape-swagger that referenced this pull request Dec 15, 2014
@jhollinger
Copy link
Contributor Author

Added to CHANGELOG.

@dblock
Copy link
Member

dblock commented Dec 15, 2014

Squash the commits if you have a chance. I can do it for you otherwise, too.

@jhollinger
Copy link
Contributor Author

Squashed.

dblock added a commit that referenced this pull request Dec 16, 2014
@dblock dblock merged commit d33fb9d into ruby-grape:master Dec 16, 2014
@dblock
Copy link
Member

dblock commented Dec 16, 2014

Thanks, merged.

@jhollinger jhollinger deleted the using-string branch January 17, 2015 17:46
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