Fix Rails 6 deprecation warnings that raise errors in Rails 7
What does this MR do and why?
- Uses
takeinstead offirstto fetch non-deterministic result - Fixes ActiveModel errors deprecations
These deprecations raise warnings in Rails 6.1 and raises an error in Rails 7
Related issue: #366910 (closed)
Edited by Igor Drozdov