about summary refs log tree commit diff
path: root/app/views/accounts/show.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-24 13:40:42 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-24 13:40:42 +0200
commit57583f3fb8a609dab90b2c35f569d8feee655bd7 (patch)
tree4018f72c22ec862c7566d587f326506fc60f3521 /app/views/accounts/show.html.haml
parent95d72b2249e1313182d4ee8b3dbf62666d716585 (diff)
Improve partial rendering and Haml performance (Haml->Hamlit)
Diffstat (limited to 'app/views/accounts/show.html.haml')
-rw-r--r--app/views/accounts/show.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml
index 815d05f0c..563b43849 100644
--- a/app/views/accounts/show.html.haml
+++ b/app/views/accounts/show.html.haml
@@ -12,7 +12,6 @@
     = render partial: 'nothing_here'
 - else
   .activity-stream
-    - @statuses.each do |status|
-      = render partial: 'stream_entries/status', locals: { status: status }
+    = render partial: 'stream_entries/status', collection: @statuses, as: :status
 
 = will_paginate @statuses, pagination_options