From 4e587021265323bd0b170b57e9c7aecaa7f826d7 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Mon, 18 Mar 2024 09:34:35 -0400 Subject: [PATCH] fix: polymorphic `on` expects a symbol (#433) Fix polymorphic type mismatch in polymorphic_belongs_to by ensuring symbol conversion --- lib/graphiti/sideload/polymorphic_belongs_to.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphiti/sideload/polymorphic_belongs_to.rb b/lib/graphiti/sideload/polymorphic_belongs_to.rb index 141ad5e1..40946a6e 100644 --- a/lib/graphiti/sideload/polymorphic_belongs_to.rb +++ b/lib/graphiti/sideload/polymorphic_belongs_to.rb @@ -41,7 +41,7 @@ def ignore?(group_name) end def on(name, &blk) - group = Group.new(name) + group = Group.new(name.to_sym) @groups << group group end