class ActiveAdmin::Views::IndexAsSortableTable::IndexSortableTableFor

Public Instance Methods

sortable?() click to toggle source
# File lib/activeadmin_draggable/sortable_tree.rb, line 36
def sortable?
  false
end

Protected Instance Methods

build_table_body() click to toggle source
# File lib/activeadmin_draggable/sortable_tree.rb, line 42
def build_table_body
  @tbody = tbody do
    # Build enough rows for our collection
    @collection.each{|_| tr(:class => "level_#{_.level rescue 0}", :id => dom_id(_)) }
  end
end