-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Labels
Description
I'm using sortable tree in a ActiveAdmin, in Rails 4.2, with the following:
sortable tree: true,
roots_collection: -> { Taxon.categories.roots },
max_levels: 2
But when visit the index, I see all levels, which are 3. Looking at the HTML, the data-* attributes were set appropriately:
<ol
class="ui-sortable"
data-sortable-type="tree"
data-sortable-url="/admin/contexts/1/categorias/sort"
data-max-levels="2">
Is there any problem with the options I passed?