Commit 9f5e409f by Rocky Duan

change dot style

parent d8c77ab2
...@@ -39,11 +39,11 @@ class Comment < Content ...@@ -39,11 +39,11 @@ class Comment < Content
if params[:recursive] if params[:recursive]
self.class.hash_tree(subtree(sort: sort_by_parent_and_time)).first self.class.hash_tree(subtree(sort: sort_by_parent_and_time)).first
else else
as_document.slice(*%w[body course_id endorsed created_at updated_at]). as_document.slice(*%w[body course_id endorsed created_at updated_at])
merge("id" => _id). .merge("id" => _id)
merge("user_id" => (author.id if author)). .merge("user_id" => (author.id if author))
merge("thread_id" => comment_thread.id). .merge("thread_id" => comment_thread.id)
merge("votes" => votes.slice(*%w[count up_count down_count point])) .merge("votes" => votes.slice(*%w[count up_count down_count point]))
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment