Commit 1c3f664a authored by Robert Speicher's avatar Robert Speicher

Merge branch 'sh-fix-ce-application-settings-helper' into 'master'

[RUN ALL RSPEC] Fix application settings helpers not being loaded in FOSS

See merge request gitlab-org/gitlab!56544
parents 4eceeb13 30b879d6
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
module GitlabRoutingHelper module GitlabRoutingHelper
extend ActiveSupport::Concern extend ActiveSupport::Concern
include ::ProjectsHelper
include ::ApplicationSettingsHelper
include API::Helpers::RelatedResourcesHelpers include API::Helpers::RelatedResourcesHelpers
included do included do
Gitlab::Routing.includes_helpers(self) Gitlab::Routing.includes_helpers(self)
......
...@@ -36,6 +36,8 @@ class Project < ApplicationRecord ...@@ -36,6 +36,8 @@ class Project < ApplicationRecord
include Integration include Integration
include Repositories::CanHousekeepRepository include Repositories::CanHousekeepRepository
include EachBatch include EachBatch
include GitlabRoutingHelper
extend Gitlab::Cache::RequestCache extend Gitlab::Cache::RequestCache
extend Gitlab::Utils::Override extend Gitlab::Utils::Override
......
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
module EE module EE
module GitlabRoutingHelper module GitlabRoutingHelper
include ::ProjectsHelper
include ::ApplicationSettingsHelper
def geo_primary_web_url(container) def geo_primary_web_url(container)
File.join(::Gitlab::Geo.primary_node.url, container.full_path) File.join(::Gitlab::Geo.primary_node.url, container.full_path)
end end
......
...@@ -843,5 +843,3 @@ module EE ...@@ -843,5 +843,3 @@ module EE
end end
end end
end end
EE::Project.include_if_ee('::EE::GitlabRoutingHelper')
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