debian-mirror-gitlab/app/presenters/releases/evidence_presenter.rb
2022-05-07 20:08:51 +05:30

14 lines
331 B
Ruby

# frozen_string_literal: true
module Releases
class EvidencePresenter < Gitlab::View::Presenter::Delegated
presents ::Releases::Evidence, as: :evidence
def filepath
release = evidence.release
project = release.project
project_evidence_url(project, release, evidence, format: :json)
end
end
end