Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

fix withdotkeys loosing ancestor keys on deep hashes #315

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

kynetiv
Copy link

@kynetiv kynetiv commented Jul 5, 2016

This fixes #231

The withdotkeys method is dropping the ancestor key after traversing two steps deep into a nested hash. This PR retains the full dotted-key hash path for the string so the desired fields for CSV download are included. Also updated the nested_has spec to test withdotkeys method on deep hashes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSV endpoint is not returning the same number of fields as JSON endpoint?
2 participants