Skip to content

Commit 6088997

Browse files
Make recently edited drafts easier to find in /admin, sorted by updated_at
1 parent 82ba4bf commit 6088997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/admin/articles_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def index
1111
end
1212

1313
def draft
14-
@articles = Article.draft.root.page(params[:page])
14+
@articles = Article.reorder(updated_at: :desc).draft.root.page(params[:page])
1515

1616
# TEMP: workaround, for now
1717
@title = PageTitle.new %i[Admin Articles Draft]

0 commit comments

Comments
 (0)