app/models/knowledge_base/article.rb in knowledge_base-0.0.3 vs app/models/knowledge_base/article.rb in knowledge_base-0.1.0
- old
+ new
@@ -1,13 +1,5 @@
module KnowledgeBase
class Article < ActiveRecord::Base
- extend FriendlyId
-
- publishable
-
- friendly_id :title, use: :slugged
-
- has_many :category_article_associations
- has_many :categories, through: :category_article_associations
- has_many :sections, -> { order 'position ASC' }, as: :container
+ include Concerns::Models::Article
end
end