Skip to content
This repository
Browse code

Fix home suggest items match bug.

  • Loading branch information...
commit 7200ebad697045f488347f06a30b28f56cdd418c 1 parent a5f34e3
Jason Lee huacnlee authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  app/models/mongoid/base_model.rb
2  app/models/mongoid/base_model.rb
@@ -7,7 +7,7 @@ module BaseModel
7 7 included do
8 8 scope :recent, desc(:_id)
9 9 scope :exclude_ids, Proc.new { |ids| where(:_id.nin => ids.map(&:to_i)) }
10   - scope :by_week, where(:created_at.gte => 1.week.ago.to_s)
  10 + scope :by_week, where(:created_at.gte => 7.days.ago)
11 11 end
12 12
13 13 module ClassMethods

0 comments on commit 7200eba

Please sign in to comment.
Something went wrong with that request. Please try again.