mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
Changing the default sort order so that the context view matches the home screen view.
This appears to override the todos_controller.rb order.
This commit is contained in:
parent
671652c4c4
commit
09e0f64de7
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
class Context < ActiveRecord::Base
|
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
|
has_many :recurring_todos, :dependent => :delete_all
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue