make comment and thread inherited from a single class
This commit is contained in:
Родитель
3e6177cf21
Коммит
323f75139b
|
@ -1,5 +1,6 @@
|
|||
class Comment
|
||||
include Mongoid::Document
|
||||
require_relative 'content'
|
||||
|
||||
class Comment < Content
|
||||
include Mongoid::Tree
|
||||
include Mongo::Voteable
|
||||
include Mongoid::Timestamps
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class CommentThread
|
||||
include Mongoid::Document
|
||||
require_relative 'content'
|
||||
|
||||
class CommentThread < Content
|
||||
include Mongo::Voteable
|
||||
include Mongoid::Timestamps
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
class Content
|
||||
include Mongoid::Document
|
||||
|
||||
end
|
Загрузка…
Ссылка в новой задаче