to_a not needed

This commit is contained in:
Sam 2013-12-13 19:01:35 +11:00
parent 1649f56529
commit fa4a8e052f

View File

@ -126,7 +126,6 @@ class Search
.order("topics_month DESC") .order("topics_month DESC")
.secured(@guardian) .secured(@guardian)
.limit(@limit) .limit(@limit)
.to_a
categories.each do |c| categories.each do |c|
@results.add_result(SearchResult.from_category(c)) @results.add_result(SearchResult.from_category(c))