From 628c7555517f4a9426ea402da614ea93158b142d Mon Sep 17 00:00:00 2001
From: Kasper Timm Hansen <kaspth@gmail.com>
Date: Mon, 18 Dec 2023 23:09:45 +0100
Subject: [PATCH] 3.0: Gotta use Structs

---
 test/boot/associated_object.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/boot/associated_object.rb b/test/boot/associated_object.rb
index 7922e04..cac9df0 100644
--- a/test/boot/associated_object.rb
+++ b/test/boot/associated_object.rb
@@ -11,8 +11,9 @@ class ApplicationRecord::AssociatedObject < ActiveRecord::AssociatedObject; end
 class Author::Archiver < ApplicationRecord::AssociatedObject
 end
 
-Author::Classified    = Data.define(:author)
-Author::Fortification = Data.define(:author)
+# TODO: Replace with Data.define once on Ruby 3.2.
+Author::Classified    = Struct.new(:author)
+Author::Fortification = Struct.new(:author)
 
 class Post::Publisher < ApplicationRecord::AssociatedObject
   mattr_accessor :performed,      default: false