Method: Sirens::TreeChoiceModel#objects_hierarchy_at

Defined in:
lib/models/tree_choice_model.rb

#objects_hierarchy_at(path:) ⇒ Object

Given a path returns an array with the objects on each tree level corresponding to each index in the path.



92
93
94
# File 'lib/models/tree_choice_model.rb', line 92

def objects_hierarchy_at(path:)
    @tree.objects_hierarchy_at(path: path)
end