app/models/knowledge_base/sectionables/image.rb in knowledge_base-0.0.3 vs app/models/knowledge_base/sectionables/image.rb in knowledge_base-0.1.0

- old
+ new

@@ -1,5 +1,9 @@ -module KnowledgeBase - class Sectionables::Image < ActiveRecord::Base +module KnowledgeBase::Sectionables + class Image < Sectionable mount_uploader :image, ImageUploader + + def to_s + "#{super}: #{caption}" + end end end