Commit 46d5c76e authored by Siddharth Asthana's avatar Siddharth Asthana

Remove delegate as it's redundant due to SimpleDelegator

Changelog: other
parent 1829280d
# frozen_string_literal: true
class ReleasePresenter < Gitlab::View::Presenter::Delegated
include ActionView::Helpers::UrlHelper
presents ::Release, as: :release
# TODO: Remove `delegate` as it's redundant due to SimpleDelegator.
delegator_override :tag, :project
delegate :project, :tag, to: :release
def commit_path
return unless release.commit && can_download_code?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment