Class: ActiveAdmin::Views::IndexAsReorderableTable
- Inherits:
-
IndexAsTable
- Object
- IndexAsTable
- ActiveAdmin::Views::IndexAsReorderableTable
- Defined in:
- lib/active_admin/views/index_as_reorderable_table.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.index_name ⇒ Object
5 6 7 |
# File 'lib/active_admin/views/index_as_reorderable_table.rb', line 5 def self.index_name 'reorderable_table' end |
Instance Method Details
#build(page_presenter, collection) ⇒ Object
9 10 11 12 |
# File 'lib/active_admin/views/index_as_reorderable_table.rb', line 9 def build(page_presenter, collection) add_class 'aa-reorderable' super(page_presenter, collection) end |
#table_for(*args, &block) ⇒ Object
14 15 16 |
# File 'lib/active_admin/views/index_as_reorderable_table.rb', line 14 def table_for(*args, &block) insert_tag ReorderableTableFor, *args, &block end |