From 1f112b013bafc3f7e6181bcdbdafc87a7dcf9037 Mon Sep 17 00:00:00 2001 From: Martin Svoboda Date: Tue, 30 Jan 2024 21:35:19 +0800 Subject: [PATCH] =?UTF-8?q?460=20=F0=9F=90=9B=20Fix=20bug:=20graphiti=20no?= =?UTF-8?q?t=20compatible=20with=20Rails=207.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/graphiti-api/graphiti/issues/460 --- lib/graphiti/util/serializer_relationships.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphiti/util/serializer_relationships.rb b/lib/graphiti/util/serializer_relationships.rb index 5ab52b2e..70bf886d 100644 --- a/lib/graphiti/util/serializer_relationships.rb +++ b/lib/graphiti/util/serializer_relationships.rb @@ -118,7 +118,7 @@ def validate_link_for_sideload!(sideload) cache_key = :"#{@sideload.object_id}-#{action}" return if self.class.validated_link_cache.include?(cache_key) prc = Graphiti.config.context_for_endpoint - unless prc.call(sideload.resource.endpoint[:full_path], action) + unless prc.call(sideload.resource.endpoint[:full_path].to_s, action) raise Errors::InvalidLink.new(@resource_class, sideload, action) end self.class.validated_link_cache << cache_key