app/models/knowledge_base/sectionables/gallery.rb in knowledge_base-0.1.0 vs app/models/knowledge_base/sectionables/gallery.rb in knowledge_base-0.2.0
- old
+ new
@@ -1,9 +1,5 @@
-module KnowledgeBase::Sectionables
- class Gallery < Sectionable
- has_many :images, -> { order 'position DESC' }
-
- def to_s
- "#{super}: #{title}"
- end
+module KnowledgeBase
+ class Sectionables::Gallery < Sectionables::Sectionable
+ include Concerns::Models::Sectionables::Gallery
end
end