mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
codeclimate fixes
This commit is contained in:
parent
0c2dc9f957
commit
ec1a48743c
11 changed files with 14 additions and 17 deletions
|
@ -8,8 +8,7 @@ module Admin
|
|||
def index
|
||||
@q = Registrar.joins(:accounts).ordered.search(params[:q])
|
||||
@registrars = @q.result.page(params[:page])
|
||||
@count = @q.result.count
|
||||
@registrars = @registrars.per(params[:results_per_page]) if params[:results_per_page].to_i.positive?
|
||||
@registrars = @registrars.per(params[:results_per_page]) if paginate?
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue