Skip to content

Commit 86fa070

Browse files
committed
revert to base_class
1 parent 847f09c commit 86fa070

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/polymorphic_integer_type/belongs_to_polymorphic_association_extension.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Associations
33
class BelongsToPolymorphicAssociation < BelongsToAssociation
44
private def replace_keys(record)
55
super
6-
owner[reflection.foreign_type] = record.class
6+
owner[reflection.foreign_type] = record.class.base_class
77
end
88
end
99
end

0 commit comments

Comments
 (0)