Permalink
Browse files

Fix home suggest items match bug.

  • Loading branch information...
1 parent a5f34e3 commit 7200ebad697045f488347f06a30b28f56cdd418c @huacnlee huacnlee committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/mongoid/base_model.rb
View
2 app/models/mongoid/base_model.rb
@@ -7,7 +7,7 @@ module BaseModel
included do
scope :recent, desc(:_id)
scope :exclude_ids, Proc.new { |ids| where(:_id.nin => ids.map(&:to_i)) }
- scope :by_week, where(:created_at.gte => 1.week.ago.to_s)
+ scope :by_week, where(:created_at.gte => 7.days.ago)
end
module ClassMethods

0 comments on commit 7200eba

Please sign in to comment.