Skip to content

Commit

Permalink
Merge pull request #461 from svobom57/460/make-graphiti-compatible-wi…
Browse files Browse the repository at this point in the history
…th-rails-7-1

460 🐛 Fix bug: graphiti not compatible with Rails 7.1
  • Loading branch information
jkeen authored Feb 27, 2024
2 parents 88ca46d + 1f112b0 commit ef4ee33
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 ef4ee33

Please sign in to comment.