mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Add registrars index
This commit is contained in:
parent
f860a8937f
commit
18c7c2f374
4 changed files with 35 additions and 1 deletions
|
@ -2,4 +2,9 @@ class Admin::RegistrarsController < ApplicationController
|
|||
def search
|
||||
render json: Registrar.search_by_query(params[:q])
|
||||
end
|
||||
|
||||
def index
|
||||
@q = Registrar.search(params[:q])
|
||||
@registrars = @q.result.page(params[:page])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue