Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/processable.rb')
-rw-r--r--app/models/ci/processable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/processable.rb b/app/models/ci/processable.rb
index eb805ffae0a..37c82c125aa 100644
--- a/app/models/ci/processable.rb
+++ b/app/models/ci/processable.rb
@@ -104,8 +104,8 @@ module Ci
to: :pipeline
def clone(current_user:, new_job_variables_attributes: [])
- new_attributes = self.class.clone_accessors.to_h do |attribute|
- [attribute, public_send(attribute)] # rubocop:disable GitlabSecurity/PublicSend
+ new_attributes = self.class.clone_accessors.index_with do |attribute|
+ public_send(attribute) # rubocop:disable GitlabSecurity/PublicSend
end
if persisted_environment.present?