diff options
Diffstat (limited to 'app/workers/clusters/applications/deactivate_integration_worker.rb')
-rw-r--r-- | app/workers/clusters/applications/deactivate_integration_worker.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/clusters/applications/deactivate_integration_worker.rb b/app/workers/clusters/applications/deactivate_integration_worker.rb index d1db99d21af..fca05e8ad2e 100644 --- a/app/workers/clusters/applications/deactivate_integration_worker.rb +++ b/app/workers/clusters/applications/deactivate_integration_worker.rb @@ -24,6 +24,8 @@ module Clusters .include_integration(integration_association_name) projects.find_each do |project| + # This use of public_send is safe because we constructed the + # integration_association_name ourselves above. project.public_send(integration_association_name).update!(active: false) # rubocop:disable GitlabSecurity/PublicSend end end |