mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 07:48:50 +01:00
Remove deprecations printed out in the test suite
This commit is contained in:
parent
d3c9975606
commit
f2647e3f94
5 changed files with 10 additions and 10 deletions
|
|
@ -629,19 +629,19 @@ class TodosController < ApplicationController
|
|||
|
||||
@not_done_todos = todos_with_tag_ids.
|
||||
active.not_hidden.
|
||||
reorder('todos.due IS NULL, todos.due ASC, todos.created_at ASC').
|
||||
reorder(Arel.sql('todos.due IS NULL, todos.due ASC, todos.created_at ASC')).
|
||||
includes(Todo::DEFAULT_INCLUDES)
|
||||
@hidden_todos = todos_with_tag_ids.
|
||||
hidden.
|
||||
reorder('todos.completed_at DESC, todos.created_at DESC').
|
||||
reorder(Arel.sql('todos.completed_at DESC, todos.created_at DESC')).
|
||||
includes(Todo::DEFAULT_INCLUDES)
|
||||
@deferred_todos = todos_with_tag_ids.
|
||||
deferred.
|
||||
reorder('todos.show_from ASC, todos.created_at DESC').
|
||||
reorder(Arel.sql('todos.show_from ASC, todos.created_at DESC')).
|
||||
includes(Todo::DEFAULT_INCLUDES)
|
||||
@pending_todos = todos_with_tag_ids.
|
||||
blocked.
|
||||
reorder('todos.show_from ASC, todos.created_at DESC').
|
||||
reorder(Arel.sql('todos.show_from ASC, todos.created_at DESC')).
|
||||
includes(Todo::DEFAULT_INCLUDES)
|
||||
@todos_without_project = @not_done_todos.select{|t| t.project.nil?}
|
||||
|
||||
|
|
@ -1323,7 +1323,7 @@ end
|
|||
end
|
||||
|
||||
not_done_todos = not_done_todos.
|
||||
reorder("todos.due IS NULL, todos.due ASC, todos.created_at ASC").
|
||||
reorder(Arel.sql("todos.due IS NULL, todos.due ASC, todos.created_at ASC")).
|
||||
includes(Todo::DEFAULT_INCLUDES)
|
||||
|
||||
not_done_todos = not_done_todos.limit(sanitize(params[:limit])) if params[:limit]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue