app/models/knowledge_base/sectionables/links.rb in knowledge_base-0.0.3 vs app/models/knowledge_base/sectionables/links.rb in knowledge_base-0.1.0
- old
+ new
@@ -1,5 +1,9 @@
-module KnowledgeBase
- class Sectionables::Links < ActiveRecord::Base
+module KnowledgeBase::Sectionables
+ class Links < Sectionable
has_many :links
+
+ def to_s
+ "#{super}: #{links.map(&:title).join(', ')}"
+ end
end
end