Commit 157ae244 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'alipniagov-336792-defer-wiki-document-rendering' into 'master'

Update method_missing in Gitlab::Lazy for ruby 3 kwarg support

See merge request gitlab-org/gitlab!83386
parents d56cce87 182e996b
......@@ -15,10 +15,10 @@ module Gitlab
@block = block
end
def method_missing(name, *args, &block)
def method_missing(...)
__evaluate__
@result.__send__(name, *args, &block) # rubocop:disable GitlabSecurity/PublicSend
@result.__send__(...) # rubocop:disable GitlabSecurity/PublicSend
end
def respond_to_missing?(name, include_private = false)
......
......@@ -56,11 +56,8 @@ module DeprecationToolkitEnv
# In this case, we recommend to add a silence together with an issue to patch or update
# the dependency causing the problem.
# See https://gitlab.com/gitlab-org/gitlab/-/commit/aea37f506bbe036378998916d374966c031bf347#note_647515736
#
# - lib/gitlab/lazy.rb: https://gitlab.com/gitlab-org/gitlab/-/issues/356367
def self.allowed_kwarg_warning_paths
%w[
lib/gitlab/lazy.rb
]
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