mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 13:28:49 +01:00
Merge pull request #41 from craigmaloney/patch-1
Changing the default sort order so that the context view matches the home
This commit is contained in:
commit
6b401e5f41
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
class Context < ActiveRecord::Base
|
||||
|
||||
has_many :todos, :dependent => :delete_all, :include => :project, :order => "todos.completed_at DESC"
|
||||
has_many :todos, :dependent => :delete_all, :include => :project,
|
||||
:order => 'todos.due IS NULL, todos.due ASC, todos.created_at ASC'
|
||||
has_many :recurring_todos, :dependent => :delete_all
|
||||
belongs_to :user
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue