Fixed foodsoft rake tasks.
This commit is contained in:
parent
ea547c84f0
commit
971e80b505
3 changed files with 7 additions and 15 deletions
|
|
@ -5,7 +5,6 @@ class Task < ActiveRecord::Base
|
|||
|
||||
scope :non_group, :conditions => { :workgroup_id => nil, :done => false }
|
||||
scope :done, :conditions => {:done => true}, :order => "due_date DESC"
|
||||
scope :upcoming, lambda { |*args| {:conditions => ["done = 0 AND due_date = ?", (args.first || 7.days.from_now)]} }
|
||||
|
||||
# form will send user in string. responsibilities will added later
|
||||
attr_protected :users
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue