Skip to content

Commit

Permalink
extend export csv of domain
Browse files Browse the repository at this point in the history
  • Loading branch information
olegphenomenon committed Jul 29, 2022
1 parent 73a4364 commit 83f1157
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/registrar/domains_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 83f1157

Please sign in to comment.