Class: ActiveAdmin::Views::ReorderableTableFor
- Inherits:
-
IndexAsTable::IndexTableFor
- Object
- IndexAsTable::IndexTableFor
- ActiveAdmin::Views::ReorderableTableFor
- 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, = {}, &block) [:class] = [[:class], 'aa-reorderable'].compact.join(' ') super(collection, ) do reorder_column block.call if block.present? end end |