Skip to content

Commit 4f20101

Browse files
committed
Update contacts_controller.rb
1 parent 46ec84b commit 4f20101

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/contacts_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ class ContactsController < ApplicationController
66
# GET /contacts/user
77
def user
88
@contacts = current_user
9-
.contacts.order(created_at: :asc)
9+
.contacts.order(created_at: :desc)
1010
.paginate(page: params[:page], per_page: 30)
1111
render :index
1212
end
1313

1414
# GET /publications/1/contacts
1515
def index
1616
@contacts = @publication
17-
.contacts.order(created_at: :asc)
17+
.contacts.order(created_at: :desc)
1818
.paginate(page: params[:page], per_page: 30)
1919
end
2020

0 commit comments

Comments
 (0)