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
|
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?
|
2020-10-24 23:57:45 +05:30
|
|
|
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
|