From f8713d1e4ae74d42c67a0586036649042ae25031 Mon Sep 17 00:00:00 2001 From: Noa Himesaka Date: Fri, 28 Jul 2023 23:04:48 +0900 Subject: [PATCH] fix: adapt to Rails 7.0 changes --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/status.rb b/app/models/status.rb index 6131b38371..e40fa8c61f 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -306,7 +306,7 @@ class Status < ApplicationRecord end end - ActiveRecord::Associations::Preloader.new.preload(records, :custom_emoji) + ActiveRecord::Associations::Preloader.new(records: records, associations: :custom_emoji) records end