Fix Rails 6 deprecation warnings that raise errors in Rails 7

What does this MR do and why?

  • Uses take instead of first to 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

Merge request reports

Loading