Corrected tests

This commit is contained in:
Sergei Tsoganov 2023-04-06 21:24:55 +03:00
parent 4bf656f425
commit cc4d4d0e1f
16 changed files with 56 additions and 41 deletions

View file

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