Skip to content

Fix deprecation: Passing ActiveRecord::Base objects to sanitize_sql_hash_for_assignment

What does this MR do?

Fix rails 5 deprecation: Passing `ActiveRecord::Base` objects to `sanitize_sql_hash_for_assignment` (or methods which call it, such as `update_all`) is deprecated. Please pass the id directly, instead. (called from update_resource_label_events at /builds/gitlab-org/gitlab-ce/app/services/labels/promote_service.rb:68)

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports