Skip to content

Fix deprecation warning about quoting AR objects

Mehmet Emin INAC requested to merge fix_object_quote_deprecation_warnings into master

What does this MR do?

This MR fixes a deprecation warning. Deprecation message says the feature will be removed by 6.2. but it's been already postponed to 7.0. however, we should fix this anyway.

DEPRECATION WARNING: Passing an Active Record object to `quote`
directly is deprecated and will be no longer quoted as id value in
Rails 6.2.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Merge request reports

Loading