Commit ffb967155856eac2a83d03bbf6ddd680a1bb890e

Authored by Rodrigo Souto
1 parent f9324b42

[macro-support-review] Removing as_thread call

plugins/comment_group/controllers/profile/comment_group_plugin_profile_controller.rb
@@ -8,7 +8,7 @@ class CommentGroupPluginProfileController < ProfileController @@ -8,7 +8,7 @@ class CommentGroupPluginProfileController < ProfileController
8 article = profile.articles.find(article_id) 8 article = profile.articles.find(article_id)
9 comments = article.group_comments.without_spam.in_group(group_id) 9 comments = article.group_comments.without_spam.in_group(group_id)
10 render :update do |page| 10 render :update do |page|
11 - page.replace_html "comments_list_group_#{group_id}", :partial => 'comment/comment.rhtml', :collection => comments.as_thread 11 + page.replace_html "comments_list_group_#{group_id}", :partial => 'comment/comment.rhtml', :collection => comments
12 page.replace_html "comment-count-#{group_id}", comments.count 12 page.replace_html "comment-count-#{group_id}", comments.count
13 end 13 end
14 end 14 end