diff --git a/app/models/crop.rb b/app/models/crop.rb index 11e08c4a9..a420ddb41 100644 --- a/app/models/crop.rb +++ b/app/models/crop.rb @@ -95,7 +95,7 @@ class Crop < ActiveRecord::Base # it's inefficient to shuffle this up-front, but if we cache # the crops on the homepage it won't be run too often, and there's # not *that* many crops. - Crop.all.shuffle.each do |c| + Crop.all.each do |c| break if interesting_crops.length == howmany next unless c.interesting? interesting_crops.push(c)