debian-mirror-gitlab/app/presenters/clusters/integration_presenter.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
276 B
Ruby
Raw Permalink Normal View History

2021-04-29 21:17:54 +05:30
# frozen_string_literal: true
module Clusters
class IntegrationPresenter < Gitlab::View::Presenter::Delegated
2022-08-13 15:12:31 +05:30
presents ::Clusters::Integrations::Prometheus, as: :integration
2021-04-29 21:17:54 +05:30
def application_type
integration.class.name.demodulize.underscore
end
end
end