dsaboard
This commit is contained in:
parent
dbd69d1d0e
commit
1a03b17ab5
7 changed files with 120 additions and 51 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue