datocms / ruby-datocms-client

Ruby client for the DatoCMS API.
https://www.datocms.com/docs/content-management-api/using-the-ruby-client
MIT License
20 stars 15 forks source link

Fix dato dump for tree objects #11

Closed dewyze closed 6 years ago

dewyze commented 6 years ago

Int his line, the 'value' variable is not defined, and thus ends up being a method call grabbed by "method_missing" below. Instead, since the tree is recursive, we should be calling that method on the child of the tree.

dewyze commented 6 years ago

I did not include tests because there were not tests already present for a tree object.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 94.024% when pulling 45de73699d5bf9d7d7548728bf4858744998ce1b on dewyze:fix_for_tree_dump into f17861f651eae9e078260acf79ce38af041511be on datocms:master.