From 7a61048d69cb15b1b5cad168146937aa1827e79e Mon Sep 17 00:00:00 2001 From: r888888888 Date: Sat, 12 Apr 2014 15:14:10 -0700 Subject: [PATCH] iqdb display fix --- app/views/iqdb/similar_by_source.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/iqdb/similar_by_source.html.erb b/app/views/iqdb/similar_by_source.html.erb index ddf739f91..ba06a3ff1 100644 --- a/app/views/iqdb/similar_by_source.html.erb +++ b/app/views/iqdb/similar_by_source.html.erb @@ -1,4 +1,4 @@ -<% if @download.matches %> +<% if @download.matches.any? %>

Similar

<% @download.matches.each do |match| %> <%= PostPresenter.preview(Post.find(match.post_id)) %>