fix order bug

This commit is contained in:
wvengen 2014-05-06 10:51:45 +02:00
parent 3953c21ae2
commit 3a41e9530f
5 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@ class Workgroup < Group
has_many :tasks
# returns all non-finished tasks
has_many :open_tasks, -> { where(:done => false).order('due_date ASC, name ASC') }, :class_name => 'Task'
has_many :open_tasks, -> { where(:done => false).order('due_date', 'name') }, :class_name => 'Task'
validates_uniqueness_of :name
validate :last_admin_on_earth, :on => :update