Class: ActiveAdmin::Views::ReorderableTableFor

Inherits:
IndexAsTable::IndexTableFor
  • Object
show all
Defined in:
lib/active_admin/views/reorderable_table_for.rb

Instance Method Summary collapse

Instance Method Details

#build(collection, options = {}, &block) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/active_admin/views/reorderable_table_for.rb', line 6

def build(collection, options = {}, &block)
  options[:class] = [options[:class], 'aa-reorderable'].compact.join(' ')

  super(collection, options) do
    reorder_column
    block.call if block.present?
  end
end