mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
replaced deprecated method (search)
This commit is contained in:
parent
e5e56b9de7
commit
f9f74fa3e3
20 changed files with 26 additions and 26 deletions
|
@ -5,7 +5,7 @@ module Admin
|
|||
def index
|
||||
params[:q] ||= {}
|
||||
domains = BlockedDomain.all.order(:name)
|
||||
@q = domains.search(params[:q])
|
||||
@q = domains.ransack(params[:q])
|
||||
@domains = @q.result.page(params[:page])
|
||||
@domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i.positive?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue