remove unnecessary count query for post_versions listing

This commit is contained in:
albert
2013-02-20 14:18:33 -05:00
parent 74aeb01418
commit 63394ef161
6 changed files with 90 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<div id="a-index">
<h1>Changes</h1>
<% if @post_versions.empty? %>
<% if @post_versions.all.empty? %>
<%= render "post_sets/blank" %>
<% else %>
<%= render "listing", :post_versions => @post_versions %>