mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +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
|
|||
|
||||
# GET /bounced_mail_addresses
|
||||
def index
|
||||
@bounced_mail_addresses = BouncedMailAddress.all.order(created_at: :desc)
|
||||
@q = BouncedMailAddress.all.order(created_at: :desc).search(params[:q])
|
||||
@bounced_mail_addresses = @q.result.page(params[:page]).per(params[:results_per_page])
|
||||
@count = @q.result.count
|
||||
end
|
||||
|
||||
# GET /bounced_mail_addresses/1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue