Fix comment
This commit is contained in:
parent
e4bb8d7823
commit
6f9248c97e
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ class Comment < ApplicationRecord
|
|||
def self.rooted_on(commentable_id, commentable_type)
|
||||
includes(:user, :commentable).
|
||||
select(:id, :user_id, :commentable_type, :commentable_id,
|
||||
:deleted, :created_at, :processed_html, :ancestry).
|
||||
:deleted, :created_at, :processed_html, :ancestry, :updated_at).
|
||||
where(commentable_id: commentable_id,
|
||||
ancestry: nil,
|
||||
commentable_type: commentable_type)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue