class Users::AuthorizationsController < ApplicationController
  load_and_authorize_resource
  inherit_resources
  belongs_to :user
  actions :destroy

  def destroy
    destroy! do |format|
      format.html { redirect_to edit_user_path(parent) }
    end
  end
end

class Users::AuthorizationsController < ApplicationController
  inherit_resources
  belongs_to :user
  actions :destroy

  def destroy
    authorize resource
    destroy! do |format|
      format.html { redirect_to edit_user_path(parent) }
    end
  end
end

Migrate authorizations controller to pundit
Migrate authorizations controller to pundit
