Skip to content

Commit

Permalink
fix: polymorphic on expects a symbol (#433)
Browse files Browse the repository at this point in the history
Fix polymorphic type mismatch in polymorphic_belongs_to by ensuring symbol conversion
  • Loading branch information
jasonkarns committed Mar 18, 2024
1 parent 3a29ea1 commit 4e58702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphiti/sideload/polymorphic_belongs_to.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e58702

Please sign in to comment.