fixed codeclimate errors

This commit is contained in:
dinsmol 2021-08-19 09:42:15 +03:00
parent b425a14f39
commit 48555c23b6
3 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ module Admin
def index
@q = Account.includes(:registrar).search(params[:q])
@accounts = @q.result.page(params[:page])
@accounts = @accounts.per(params[:results_per_page]) if params[:results_per_page].to_i.positive?
@accounts = @accounts.per(params[:results_per_page]) if paginate?
render_by_format('admin/accounts/index', 'accounts')
end