From 50facea9fd0579b5d3ae7cafcaca7f3640d38839 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 6 Mar 2013 14:44:58 -0300 Subject: [PATCH] pass just the profile identifier not all the profile --- plugins/comment_group_macro/lib/comment_group_macro_plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb b/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb index 8186537..7f8c13c 100644 --- a/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb +++ b/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb @@ -24,7 +24,7 @@ class CommentGroupMacroPlugin < Noosfero::Plugin article = source count = article.group_comments.without_spam.in_group(group_id).count - lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile }} + lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile.identifier }} end def macro_methods -- libgit2 0.21.2