FileTree: Allow output as hash, convert to JSON separately
This commit is contained in:

committed by
Sebastian Serth

parent
ad8743a7d0
commit
fb9672c7a4
@ -77,6 +77,10 @@ class FileTree
|
||||
core: {
|
||||
data: @root.children.map {|child| map_to_js_tree(child) },
|
||||
},
|
||||
}.to_json
|
||||
}
|
||||
end
|
||||
|
||||
def to_js_tree_in_json
|
||||
to_js_tree.to_json
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user