experimenting with what's causing caching errors on staging

This commit is contained in:
Skud committed 2013-08-18 20:46:44 +10:00
1 parent ed0739d56c
commit a485778c06
1 file changed
+1 -1
+1 -1
View File
@@ -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)