Skip to content

Commit 4e58702

Browse files
authored
fix: polymorphic on expects a symbol (#433)
Fix polymorphic type mismatch in polymorphic_belongs_to by ensuring symbol conversion
1 parent 3a29ea1 commit 4e58702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/graphiti/sideload/polymorphic_belongs_to.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def ignore?(group_name)
4141
end
4242

4343
def on(name, &blk)
44-
group = Group.new(name)
44+
group = Group.new(name.to_sym)
4545
@groups << group
4646
group
4747
end

0 commit comments

Comments
 (0)