diff options
| author | gitlabhq <m@gitlabhq.com> | 2011-10-18 14:33:30 +0300 |
|---|---|---|
| committer | gitlabhq <m@gitlabhq.com> | 2011-10-18 14:33:30 +0300 |
| commit | c29b49de668c4f6adc271516242249a9cec6e223 (patch) | |
| tree | 1642a25ada15c3071fe147ca94083718069984a8 /app/models/note.rb | |
| parent | 5a5845e4908895ecb8ad60bfc964eaeecdcc43b2 (diff) | |
| download | gitlab-ce-c29b49de668c4f6adc271516242249a9cec6e223.tar.gz | |
project dashboard
Diffstat (limited to 'app/models/note.rb')
| -rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index f89fb9f8995..a02464fae75 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -22,6 +22,8 @@ class Note < ActiveRecord::Base scope :common, where(:noteable_id => nil) + scope :last_week, where("created_at >= :date", :date => (Date.today - 7.days)) + mount_uploader :attachment, AttachmentUploader end # == Schema Information |
