Commit b33e1802 authored by Katrin Leinweber's avatar Katrin Leinweber

Stop using view helpers in BlamePresenter

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/341391Co-authored-by: default avatarAlbert Salim <asalim@gitlab.com>
parent 7192b924
......@@ -19,7 +19,6 @@ Rails/IncludeUrlHelper:
- app/models/integrations/redmine.rb
- app/models/integrations/webex_teams.rb
- app/models/integrations/youtrack.rb
- app/presenters/gitlab/blame_presenter.rb
- ee/app/models/integrations/github.rb
- ee/spec/helpers/ee/projects/security/configuration_helper_spec.rb
- ee/spec/lib/banzai/filter/cross_project_issuable_information_filter_spec.rb
......
......@@ -2,7 +2,6 @@
module Gitlab
class BlamePresenter < Gitlab::View::Presenter::Simple
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::TranslationHelper
include ActionView::Context
include AvatarsHelper
......@@ -75,5 +74,13 @@ module Gitlab
def project_duration
@project_duration ||= age_map_duration(groups, project)
end
def link_to(*args, &block)
ActionController::Base.helpers.link_to(*args, &block)
end
def mail_to(*args, &block)
ActionController::Base.helpers.mail_to(*args, &block)
end
end
end
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