Take queries out of reshare

This commit is contained in:
Raphael 2010-11-30 11:43:08 -08:00 committed by maxwell
parent c98f6f21c8
commit a683512e6e

View file

@ -18,6 +18,8 @@
=aspect_links(aspects_with_post(aspects, post)) =aspect_links(aspects_with_post(aspects, post))
.right .right
- reshare_aspects = aspects_without_post(aspects, post) - reshare_aspects = aspects_without_post(aspects, post)
- unless reshare_aspects.empty? - unless reshare_aspects.empty?
= render 'shared/reshare', :aspects => reshare_aspects, :post => post = render 'shared/reshare', :aspects => reshare_aspects, :post => post