Skip to content

Commit

Permalink
Add field condition block class attribute to avoid error in ruby 3.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeen committed Nov 11, 2024
1 parent 4cad908 commit 0d9a217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/graphiti/serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d9a217

Please sign in to comment.