summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-18 17:44:43 +0300
committergitlabhq <m@gitlabhq.com>2011-10-18 17:44:43 +0300
commit1a03b17ab5055babaf006c99306f7c27b6e2ddaa (patch)
treee4a4b35ae296ce465ed2a3225f7de9a2189f530b /app/models
parentdbd69d1d0e1c084f79f6955828c1dc4a63a7908c (diff)
downloadgitlab-ce-1a03b17ab5055babaf006c99306f7c27b6e2ddaa.tar.gz
dsaboard
Diffstat (limited to 'app/models')
-rw-r--r--app/models/note.rb1
1 files changed, 1 insertions, 0 deletions
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