Remove redundant undeleted pool checks

Post#pools already excludes deleted pools.
This commit is contained in:
Toks
2013-08-19 12:42:38 -04:00
parent 5cb909810d
commit 6b18c46c03
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ class PostPresenter < Presenter
end
def has_nav_links?(template)
(CurrentUser.user.enable_sequential_post_navigation && template.params[:tags].present? && template.params[:tags] !~ /order:/) || @post.pools.undeleted.any?
(CurrentUser.user.enable_sequential_post_navigation && template.params[:tags].present? && template.params[:tags] !~ /order:/) || @post.pools.any?
end
def post_footer_for_pool_html(template)

View File

@@ -4,7 +4,7 @@
<%= render "posts/partials/show/search_seq", :post => post %>
<% end %>
<% if post.pools.undeleted.any? %>
<% if post.pools.any? %>
<%= render "posts/partials/show/pools", :post => post %>
<% end %>
</div>