From 68c0682ed07229cad34933abf1fc3d6ca89b005c Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 27 Nov 2010 22:21:15 -0500 Subject: [PATCH] Take a query out --- app/views/shared/_stream_element.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_stream_element.html.haml b/app/views/shared/_stream_element.html.haml index d9399bc8f..ab86085b5 100644 --- a/app/views/shared/_stream_element.html.haml +++ b/app/views/shared/_stream_element.html.haml @@ -17,7 +17,7 @@ - if post.public? %li= t('the_world') - else - - for aspect in post.aspects + - for aspect in aspects.select{|a| post.aspect_ids.include?(a.id)} %li= link_to aspect.name, aspect .right