mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
105842700-file_generation_changed
This commit is contained in:
parent
2748f3be55
commit
cd8feaf553
4 changed files with 15 additions and 7 deletions
|
@ -32,11 +32,14 @@ class Registrant::DomainsController < RegistrantController
|
|||
@domains = @q
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.csv { render text: @domains.to_csv }
|
||||
respond_to do |format|
|
||||
format.csv { render text: @domains.result.to_csv }
|
||||
format.pdf do
|
||||
pdf = @domains.result.pdf(render_to_string('registrant/domains/download_list', layout: false))
|
||||
send_data pdf, filename: 'domains'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def normalize_search_parameters
|
||||
ca_cache = params[:q][:valid_to_lteq]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue