Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Nov 14, 2024
1 parent ce428c4 commit bb1a01b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/avo/fields/belongs_to_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ def is_polymorphic?

def primary_key
@primary_key ||= reflection.association_primary_key
# Quick fix for "Polymorphic associations do not support computing the class."
rescue
id
end

def foreign_key
Expand Down

0 comments on commit bb1a01b

Please sign in to comment.