Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from dewyze/fix_for_tree_dump
Browse files Browse the repository at this point in the history
Fix dato dump for tree objects
  • Loading branch information
stefanoverna committed Jul 10, 2018
2 parents 41e8419 + 45de736 commit db5dab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dato/local/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def to_hash(max_depth = 3, current_depth = 0)

if item_type.tree
base[:position] = position
base[:children] = children.map do |_i|
value.to_hash(
base[:children] = children.map do |child|
child.to_hash(
max_depth,
current_depth + 1
)
Expand Down

0 comments on commit db5dab0

Please sign in to comment.