diff options
| author | gitlabhq <m@gitlabhq.com> | 2011-10-18 17:44:43 +0300 |
|---|---|---|
| committer | gitlabhq <m@gitlabhq.com> | 2011-10-18 17:44:43 +0300 |
| commit | 1a03b17ab5055babaf006c99306f7c27b6e2ddaa (patch) | |
| tree | e4a4b35ae296ce465ed2a3225f7de9a2189f530b /app/models | |
| parent | dbd69d1d0e1c084f79f6955828c1dc4a63a7908c (diff) | |
| download | gitlab-ce-1a03b17ab5055babaf006c99306f7c27b6e2ddaa.tar.gz | |
dsaboard
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/note.rb | 1 |
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 |
