recent radio button

This commit is contained in:
gitlabhq 2011-10-21 14:03:34 +03:00
parent 977fe73073
commit 24f04c0a61
6 changed files with 54 additions and 21 deletions

View file

@ -24,6 +24,7 @@ class Note < ActiveRecord::Base
scope :last_week, where("created_at >= :date", :date => (Date.today - 7.days))
scope :since, lambda { |day| where("created_at >= :date", :date => (day)) }
scope :fresh, order("created_at DESC")
mount_uploader :attachment, AttachmentUploader
end