debian-mirror-gitlab/app/presenters/clusters/integration_presenter.rb
2021-11-18 22:05:49 +05:30

12 lines
316 B
Ruby

# frozen_string_literal: true
module Clusters
class IntegrationPresenter < Gitlab::View::Presenter::Delegated
presents ::Clusters::Integrations::Prometheus, ::Clusters::Integrations::ElasticStack, as: :integration
def application_type
integration.class.name.demodulize.underscore
end
end
end