diff options
author | Stan Hu <stanhu@gmail.com> | 2019-04-27 01:25:51 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-04-27 07:22:23 +0300 |
commit | 266ba11ed77f00f5fd83070a85c0bc8101203eab (patch) | |
tree | 353c3a32dd9729de7aea9dbedd9e83ff7d8e4198 /lib | |
parent | 265b789476479c29ea88db174aca1d80ddf24358 (diff) |
Fix Profiler to work with Ruby 5.1
Ruby 5.1 now requires keyword arguments to pass along parameters and
headers for ActionDispatch::Integration::RequestHelpers.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61051
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/profiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/profiler.rb b/lib/gitlab/profiler.rb index 28ed587f5c7..890228e5e78 100644 --- a/lib/gitlab/profiler.rb +++ b/lib/gitlab/profiler.rb @@ -73,7 +73,7 @@ module Gitlab result = with_custom_logger(logger) do with_user(user) do - RubyProf.profile { app.public_send(verb, url, post_data, headers) } # rubocop:disable GitlabSecurity/PublicSend + RubyProf.profile { app.public_send(verb, url, params: post_data, headers: headers) } # rubocop:disable GitlabSecurity/PublicSend end end |