From a485778c06cf58b75b133feea298f4ee38d422ec Mon Sep 17 00:00:00 2001 From: Skud Date: Sun, 18 Aug 2013 20:46:44 +1000 Subject: [PATCH] experimenting with what's causing caching errors on staging --- app/models/crop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)