This commit is contained in:
gitlabhq 2011-10-18 17:44:43 +03:00
parent dbd69d1d0e
commit 1a03b17ab5
7 changed files with 120 additions and 51 deletions

View file

@ -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