Betterment / test_track

Server app for the TestTrack multi-platform split-testing and feature-gating system
MIT License
119 stars 33 forks source link

Fix Rails 7.0 deprecation warning #194

Closed argvniyx-enroute closed 1 year ago

argvniyx-enroute commented 1 year ago

Summary

Noticed the following deprecation warning while running specs:

DEPRECATION WARNING: Passing an Active Record object to `quote` directly is deprecated
and will be no longer quoted as id value in Rails 7.0.
 (called from update_assignments at /Users/ricardogarza/src/test_track/app/models/bulk_reassignment.rb:66)

This PR simply passes an id to quote directly, to avoid the warning.

/domain @Betterment/test_track_core

argvniyx-enroute commented 1 year ago

(sorry had to do this)

bernie-once-again-merging