Sha256: 5bf7d0843d4f0a597bf27b686ed51e747ef82f3ba3455c9ccb89bba71988d495

Contents?: true

Size: 247 Bytes

Versions: 2

Compression:

Stored size: 247 Bytes

Contents

ActiveAdmin.register Category do
  include ActiveAdmin::SortableTable
  permit_params :id, :position
  config.sort_order = 'position_asc'
  config.per_page = 3

  index do
    handle_column
    id_column
    column :position
    actions
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin_sortable_table-1.1.3 spec/dummy/app/admin/categories.rb
activeadmin_sortable_table-1.1.2 spec/dummy/app/admin/categories.rb