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

Nested exposures are causing duplication. #65

Closed
nickls opened this issue Mar 15, 2014 · 2 comments
Closed

Nested exposures are causing duplication. #65

nickls opened this issue Mar 15, 2014 · 2 comments

Comments

@nickls
Copy link

nickls commented Mar 15, 2014

When using a nested exposure the inner exposure appears twice in the output.

Once as a sub element and again as a top level element, see the output below.

expose :profile do
    expose :username
end

Result:

{"name":"Nick","profile":{"username":"nickls"},"username":"nickls"}

Expected Result:

{"name":"Nick","profile":{"username":"nickls"}}
@nickls
Copy link
Author

nickls commented Mar 15, 2014

Proof of concept:
https://gist.github.com/nickls/9560350

@nickls
Copy link
Author

nickls commented Mar 15, 2014

oops, should have checked lastest build:

Dupe: #57

@nickls nickls closed this as completed Mar 15, 2014
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

No branches or pull requests

1 participant