We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46ec84b commit 4f20101Copy full SHA for 4f20101
1 file changed
app/controllers/contacts_controller.rb
@@ -6,15 +6,15 @@ class ContactsController < ApplicationController
6
# GET /contacts/user
7
def user
8
@contacts = current_user
9
- .contacts.order(created_at: :asc)
+ .contacts.order(created_at: :desc)
10
.paginate(page: params[:page], per_page: 30)
11
render :index
12
end
13
14
# GET /publications/1/contacts
15
def index
16
@contacts = @publication
17
18
19
20
0 commit comments