class ActiveAdmin::Views::IndexAsReorderTable
Public Instance Methods
build(page_presenter, collection)
click to toggle source
# 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.plural, # for some reason here plural is missing :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