2025-03-28 13:16:40 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
class Admin::Fasp::Debug::CallbacksController < Admin::BaseController
|
|
|
|
|
def index
|
|
|
|
|
authorize [:admin, :fasp, :provider], :update?
|
|
|
|
|
|
|
|
|
|
@callbacks = Fasp::DebugCallback
|
2026-02-17 09:56:46 -05:00
|
|
|
.includes(:fasp_provider)
|
|
|
|
|
.order(created_at: :desc)
|
2025-03-28 13:16:40 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def destroy
|
|
|
|
|
authorize [:admin, :fasp, :provider], :update?
|
|
|
|
|
|
|
|
|
|
callback = Fasp::DebugCallback.find(params[:id])
|
|
|
|
|
callback.destroy
|
|
|
|
|
|
|
|
|
|
redirect_to admin_fasp_debug_callbacks_path
|
|
|
|
|
end
|
|
|
|
|
end
|