diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-07 21:16:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-07 21:16:03 +0300 |
commit | 6a7fcb14aaff70d8438167b652b365406b37613c (patch) | |
tree | fd1b65c5e60e32c02a102158ef0bd9bad412e5d1 /app/models/integration.rb | |
parent | 468bcfb9c6d04b0244c349eda62cd7ed1496cca3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/integration.rb')
-rw-r--r-- | app/models/integration.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/integration.rb b/app/models/integration.rb index 89b34932e20..e9cd90649ba 100644 --- a/app/models/integration.rb +++ b/app/models/integration.rb @@ -392,8 +392,7 @@ class Integration < ApplicationRecord end def api_field_names - fields.map { |field| field[:name] } - .reject { |field_name| field_name =~ /(password|token|key|title|description)/ } + fields.pluck(:name).grep_v(/password|token|key|title|description/) end def global_fields |