diff options
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 |