Commit 3f2189fe authored by Andy Soiron's avatar Andy Soiron

Merge branch 'epic-6767-d-refactor-IncludeUrlHelpers' into 'master'

Stop using view helpers in BlamePresenter

See merge request gitlab-org/gitlab!81015
parents 2837e233 b33e1802
...@@ -19,7 +19,6 @@ Rails/IncludeUrlHelper: ...@@ -19,7 +19,6 @@ Rails/IncludeUrlHelper:
- app/models/integrations/redmine.rb - app/models/integrations/redmine.rb
- app/models/integrations/webex_teams.rb - app/models/integrations/webex_teams.rb
- app/models/integrations/youtrack.rb - app/models/integrations/youtrack.rb
- app/presenters/gitlab/blame_presenter.rb
- ee/app/models/integrations/github.rb - ee/app/models/integrations/github.rb
- ee/spec/helpers/ee/projects/security/configuration_helper_spec.rb - ee/spec/helpers/ee/projects/security/configuration_helper_spec.rb
- ee/spec/lib/banzai/filter/cross_project_issuable_information_filter_spec.rb - ee/spec/lib/banzai/filter/cross_project_issuable_information_filter_spec.rb
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
module Gitlab module Gitlab
class BlamePresenter < Gitlab::View::Presenter::Simple class BlamePresenter < Gitlab::View::Presenter::Simple
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::TranslationHelper include ActionView::Helpers::TranslationHelper
include ActionView::Context include ActionView::Context
include AvatarsHelper include AvatarsHelper
...@@ -75,5 +74,13 @@ module Gitlab ...@@ -75,5 +74,13 @@ module Gitlab
def project_duration def project_duration
@project_duration ||= age_map_duration(groups, project) @project_duration ||= age_map_duration(groups, project)
end 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
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