Fix comment

This commit is contained in:
Ben Halpern 2018-07-19 12:43:56 -04:00
parent e4bb8d7823
commit 6f9248c97e

View file

@ -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)