Skip to content

Commit 6126662

Browse files
committed
Restore :class_name in fixture
This one is fine, thanks to @skipkayhil for pointing this one out.
1 parent 85c1e56 commit 6126662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/models/cpk/comment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ module Cpk
44
class Comment < ActiveRecord::Base
55
self.table_name = :cpk_comments
66
belongs_to :commentable, foreign_key: %i[commentable_title commentable_author], polymorphic: true
7-
belongs_to :post, foreign_key: %i[commentable_title commentable_author]
7+
belongs_to :post, class_name: "Cpk::Post", foreign_key: %i[commentable_title commentable_author]
88
end
99
end

0 commit comments

Comments
 (0)