class ActiveAdmin::PunditAdapter

def format_action(action, subject)

def format_action(action, subject)
  # https://github.com/elabs/pundit/blob/master/lib/generators/pundit/install/templates/application_policy.rb
  case action
  when Auth::CREATE  then :create?
  when Auth::UPDATE  then :update?
  when Auth::READ    then subject.is_a?(Class) ? :index? : :show?
  when Auth::DESTROY then subject.is_a?(Class) ? :destroy_all? : :destroy?
  else "#{action}?"
  end
end