debian-mirror-gitlab/app/controllers/admin/integrations_controller.rb

21 lines
557 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
class Admin::IntegrationsController < Admin::ApplicationController
2020-04-22 19:07:51 +05:30
include IntegrationsActions
2021-01-03 14:25:43 +05:30
include ServicesHelper
2021-02-22 17:27:13 +05:30
before_action :not_found, unless: -> { instance_level_integrations? }
2021-01-03 14:25:43 +05:30
feature_category :integrations
2020-04-08 14:13:33 +05:30
2020-04-22 19:07:51 +05:30
private
2020-04-08 14:13:33 +05:30
2021-01-29 00:20:46 +05:30
def find_or_initialize_non_project_specific_integration(name)
2021-06-08 01:23:25 +05:30
Integration.find_or_initialize_non_project_specific_integration(name, instance: true)
2020-04-08 14:13:33 +05:30
end
2020-04-22 19:07:51 +05:30
def scoped_edit_integration_path(integration)
edit_admin_application_settings_integration_path(integration)
2020-04-08 14:13:33 +05:30
end
end