Permalink
Browse files

only show stamps on front page which have points

  • Loading branch information...
1 parent a5e0b24 commit 63197e3207c8ea5d45dcb29087b28a9f9ffca4be @ryanb committed Sep 5, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/stamp.rb
View
@@ -10,7 +10,7 @@ class Stamp < ActiveRecord::Base
validates_presence_of :name
named_scope :non_private, :conditions => ["private != ?", true]
- named_scope :recent, :order => "updated_at desc"
+ named_scope :recent, :conditions => "score_cache > 0", :order => "updated_at desc"
def day_points(date)
month_points(date.beginning_of_month)[date.day-1]

0 comments on commit 63197e3

Please sign in to comment.