4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/active_admin/views/index_as_reorder_table.rb', line 4
def build(page_presenter, collection)
table_options = {
:id => active_admin_config.resource_name.pluralize.downcase,
:sortable => false,
:class => "index_table index reorder",
:i18n => active_admin_config.resource_class,
:paginator => page_presenter[:paginator] != false
}
table_for collection, table_options do |t|
table_config_block = page_presenter.block || default_table
instance_exec(t, &table_config_block)
end
end
|