mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
11 lines
234 B
Ruby
11 lines
234 B
Ruby
class Admin::ContactsController < ApplicationController
|
|
|
|
def index
|
|
@q = Contact.search(params[:q])
|
|
@contacts = @q.result.page(params[:page])
|
|
end
|
|
|
|
def search
|
|
render json: Contact.search_by_query(params[:q])
|
|
end
|
|
end
|