From 83f1157583096dee10d37adc496df3074146d3dc Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Fri, 29 Jul 2022 10:13:01 +0300 Subject: [PATCH] extend export csv of domain --- app/controllers/registrar/domains_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/registrar/domains_controller.rb b/app/controllers/registrar/domains_controller.rb index 3347f5d38e..5168d25b8c 100644 --- a/app/controllers/registrar/domains_controller.rb +++ b/app/controllers/registrar/domains_controller.rb @@ -36,14 +36,12 @@ def index end end - @domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i.positive? - respond_to do |format| format.html format.csv do domain_presenters = [] - @domains.find_each do |domain| + @q.result.find_each do |domain| domain_presenters << ::DomainPresenter.new(domain: domain, view: view_context) end