mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
fixed admin pagination
This commit is contained in:
parent
f81c06673c
commit
11029e83ce
25 changed files with 126 additions and 15 deletions
|
@ -5,7 +5,9 @@ module Admin
|
|||
before_action :load_zone, only: %i[edit update destroy]
|
||||
|
||||
def index
|
||||
@zones = ::DNS::Zone.all
|
||||
@q = ::DNS::Zone.search(params[:q])
|
||||
@count = @q.result.count
|
||||
@zones = @q.result.page(params[:page]).per(params[:results_per_page])
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue