mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
EppUsers index view now includes registrar for faster sql
This commit is contained in:
parent
c3675c1b2a
commit
ac4b3e18f5
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ class Admin::ApiUsersController < AdminController
|
|||
before_action :set_api_user, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
def index
|
||||
@q = ApiUser.search(params[:q])
|
||||
@q = ApiUser.includes(:registrar).search(params[:q])
|
||||
@api_users = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue