Skip to content

Commit 1f112b0

Browse files
committed
460 🐛 Fix bug: graphiti not compatible with Rails 7.1
#460
1 parent 14e84ef commit 1f112b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphiti/util/serializer_relationships.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def validate_link_for_sideload!(sideload)
118118
cache_key = :"#{@sideload.object_id}-#{action}"
119119
return if self.class.validated_link_cache.include?(cache_key)
120120
prc = Graphiti.config.context_for_endpoint
121-
unless prc.call(sideload.resource.endpoint[:full_path], action)
121+
unless prc.call(sideload.resource.endpoint[:full_path].to_s, action)
122122
raise Errors::InvalidLink.new(@resource_class, sideload, action)
123123
end
124124
self.class.validated_link_cache << cache_key

0 commit comments

Comments
 (0)