Skip to content

Commit ef4ee33

Browse files
authored
Merge pull request #461 from svobom57/460/make-graphiti-compatible-with-rails-7-1
460 🐛 Fix bug: graphiti not compatible with Rails 7.1
2 parents 88ca46d + 1f112b0 commit ef4ee33

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)