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

Pass options when using child representations in Grape::Entity #249

Merged
merged 1 commit into from
Sep 24, 2012
Merged

Pass options when using child representations in Grape::Entity #249

merged 1 commit into from
Sep 24, 2012

Conversation

petergoldstein
Copy link
Contributor

This is a pull request to resolve issue #247.

The code change is basically as described there - the options passed into value_for is duplicated and slightly massaged to ensure :root is nil and that the :collection key is deleted from the duplicated hash.

In addition to the code change I added a couple of tests to validate this behavior.

mbleigh added a commit that referenced this pull request Sep 24, 2012
…hild_representations

Pass options when using child representations in Grape::Entity
@mbleigh mbleigh merged commit 1742bbc into ruby-grape:master Sep 24, 2012
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