Skip to content

Commit

Permalink
460 πŸ› Fix bug: graphiti not compatible with Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
svobom57 committed Jan 30, 2024
1 parent 14e84ef commit 1f112b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphiti/util/serializer_relationships.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f112b0

Please sign in to comment.