We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c1e56 commit 6126662Copy full SHA for 6126662
activerecord/test/models/cpk/comment.rb
@@ -4,6 +4,6 @@ module Cpk
4
class Comment < ActiveRecord::Base
5
self.table_name = :cpk_comments
6
belongs_to :commentable, foreign_key: %i[commentable_title commentable_author], polymorphic: true
7
- belongs_to :post, foreign_key: %i[commentable_title commentable_author]
+ belongs_to :post, class_name: "Cpk::Post", foreign_key: %i[commentable_title commentable_author]
8
end
9
0 commit comments