From 1a03b17ab5055babaf006c99306f7c27b6e2ddaa Mon Sep 17 00:00:00 2001 From: gitlabhq Date: Tue, 18 Oct 2011 17:44:43 +0300 Subject: dsaboard --- app/models/note.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/note.rb') diff --git a/app/models/note.rb b/app/models/note.rb index a02464fae75..71fd9dcd136 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -23,6 +23,7 @@ class Note < ActiveRecord::Base scope :common, where(:noteable_id => nil) scope :last_week, where("created_at >= :date", :date => (Date.today - 7.days)) + scope :since, lambda { |day| where("created_at >= :date", :date => (day)) } mount_uploader :attachment, AttachmentUploader end -- cgit v1.2.1