recent radio button
This commit is contained in:
parent
977fe73073
commit
24f04c0a61
6 changed files with 54 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue