diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /lib/banzai/filter/base_relative_link_filter.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'lib/banzai/filter/base_relative_link_filter.rb')
-rw-r--r-- | lib/banzai/filter/base_relative_link_filter.rb | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/banzai/filter/base_relative_link_filter.rb b/lib/banzai/filter/base_relative_link_filter.rb index 3f775abb185..b2eaeb69f61 100644 --- a/lib/banzai/filter/base_relative_link_filter.rb +++ b/lib/banzai/filter/base_relative_link_filter.rb @@ -13,18 +13,12 @@ module Banzai protected def linkable_attributes - if Feature.enabled?(:optimize_linkable_attributes, project, default_enabled: :yaml) - # Nokorigi Nodeset#search performs badly for documents with many nodes - # - # Here we store fetched attributes in the shared variable "result" - # This variable is passed through the chain of filters and can be - # accessed by them - result[:linkable_attributes] ||= fetch_linkable_attributes - else - strong_memoize(:linkable_attributes) do - fetch_linkable_attributes - end - end + # Nokorigi Nodeset#search performs badly for documents with many nodes + # + # Here we store fetched attributes in the shared variable "result" + # This variable is passed through the chain of filters and can be + # accessed by them + result[:linkable_attributes] ||= fetch_linkable_attributes end def relative_url_root |