mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-29 13:31:43 +01:00
52b55dabbb
This is lacking tests (and proper icons), but can talk to a debug provider.
20 lines
365 B
Ruby
20 lines
365 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::Fasp::DebugCallsController < Admin::BaseController
|
|
before_action :set_provider
|
|
|
|
def create
|
|
authorize [:admin, @provider], :update?
|
|
|
|
@provider.perform_debug_call
|
|
|
|
redirect_to admin_fasp_providers_path
|
|
end
|
|
|
|
private
|
|
|
|
def set_provider
|
|
@provider = Fasp::Provider.find(params[:provider_id])
|
|
end
|
|
end
|