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

23 lines
506 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
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
2020-04-22 19:07:51 +05:30
def find_or_initialize_integration(name)
2020-11-24 15:15:51 +05:30
Service.find_or_initialize_integration(name, instance: true)
2020-04-08 14:13:33 +05:30
end
2020-04-22 19:07:51 +05:30
def integrations_enabled?
2021-01-03 14:25:43 +05:30
instance_level_integrations?
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