diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-12-13 21:45:40 +0100 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-12-13 21:48:43 +0100 |
commit | c8d1ca7a5a923f78b048da8b4abbac379d944bfc (patch) | |
tree | 4d8524ed224956116c05cb1a0e4bbbfde76466b0 /lib/api/commit_statuses.rb | |
parent | 07e079e8dd336e76986ad001fce79ab9babb00b0 (diff) | |
download | gitlab-ce-c8d1ca7a5a923f78b048da8b4abbac379d944bfc.tar.gz |
Fix deprecation: Passing ActiveRecord::Base objects to sanitize_sql_hash_for_assignment
Diffstat (limited to 'lib/api/commit_statuses.rb')
-rw-r--r-- | lib/api/commit_statuses.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commit_statuses.rb b/lib/api/commit_statuses.rb index 62c966e06b4..08b4f8db8b0 100644 --- a/lib/api/commit_statuses.rb +++ b/lib/api/commit_statuses.rb @@ -116,7 +116,7 @@ module API end MergeRequest.where(source_project: @project, source_branch: ref) - .update_all(head_pipeline_id: pipeline) if pipeline.latest? + .update_all(head_pipeline_id: pipeline.id) if pipeline.latest? present status, with: Entities::CommitStatus rescue StateMachines::InvalidTransition => e |