Revert "Rails 7 update" (#25667)

This commit is contained in:
Eugen Rochko
2023-07-02 11:14:22 +02:00
committed by GitHub
parent 5b46345459
commit ba06a2f104
22 changed files with 144 additions and 242 deletions

View File

@@ -93,7 +93,7 @@ class AccountSearchService < BaseService
.objects
.compact
ActiveRecord::Associations::Preloader.new(records: records, associations: :account_stat)
ActiveRecord::Associations::Preloader.new.preload(records, :account_stat)
records
rescue Faraday::ConnectionFailed, Parslet::ParseFailed