From 327cd5af729d8f44b6fc65ae58f43719cca51e4c Mon Sep 17 00:00:00 2001 From: olegphenomenon Date: Fri, 29 Jul 2022 10:29:23 +0300 Subject: [PATCH] extended csv domain export --- 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