mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Added eager load to admin contact index
This commit is contained in:
parent
c6c58b177a
commit
42604daf69
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ class Admin::ContactsController < AdminController
|
||||||
before_action :set_contact, only: [:show]
|
before_action :set_contact, only: [:show]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@q = Contact.search(params[:q])
|
@q = Contact.includes(:registrar).search(params[:q])
|
||||||
@contacts = @q.result.page(params[:page])
|
@contacts = @q.result.page(params[:page])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue