Revert "Rails 7 update" (#25667)
This commit is contained in:
parent
5b46345459
commit
ba06a2f104
22 changed files with 144 additions and 242 deletions
|
@ -80,7 +80,7 @@ class Announcement < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
ActiveRecord::Associations::Preloader.new(records: records, associations: :custom_emoji)
|
||||
ActiveRecord::Associations::Preloader.new.preload(records, :custom_emoji)
|
||||
records
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue