Remove dead code

This commit is contained in:
Artur Beljajev 2018-10-29 00:59:02 +02:00
parent c86bd96588
commit e8232258d8
3 changed files with 0 additions and 12 deletions

View file

@ -3,10 +3,6 @@ module Admin
load_and_authorize_resource
before_action :set_registrar, only: [:show, :edit, :update, :destroy]
def search
render json: Registrar.search_by_query(params[:q])
end
def index
@q = Registrar.joins(:accounts).ordered.search(params[:q])
@registrars = @q.result.page(params[:page])