mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02: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
|
||||
|
||||
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