app/models/knowledge_base/section.rb in knowledge_base-0.1.0 vs app/models/knowledge_base/section.rb in knowledge_base-0.2.0
- old
+ new
@@ -1,9 +1,5 @@
module KnowledgeBase
class Section < ActiveRecord::Base
- # It sounds wrong that a section "belongs to" a sectionable, but we want the foreign
- # key to be on this side and declaring `belongs_to` is the only way to do that.
- belongs_to :sectionable, polymorphic: true
-
- belongs_to :container, polymorphic: true
+ include Concerns::Models::Section
end
end