From 0d9a2173619fa0634d624e7f892ea5a05bbcca23 Mon Sep 17 00:00:00 2001 From: Jeff Keen Date: Mon, 11 Nov 2024 14:10:34 -0600 Subject: [PATCH] Add field condition block class attribute to avoid error in ruby 3.2+ --- lib/graphiti/serializer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/graphiti/serializer.rb b/lib/graphiti/serializer.rb index 47ebd7bd..ae581ba3 100644 --- a/lib/graphiti/serializer.rb +++ b/lib/graphiti/serializer.rb @@ -13,6 +13,8 @@ class Serializer < JSONAPI::Serializable::Resource class_attribute :attributes_applied_via_resource class_attribute :extra_attributes_applied_via_resource class_attribute :relationship_condition_blocks + class_attribute :field_condition_blocks + self.field_condition_blocks ||= {} self.attributes_applied_via_resource = [] self.extra_attributes_applied_via_resource = [] # See #requested_relationships