mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
fixed codeclimate error
This commit is contained in:
parent
f966f67fa7
commit
d6a898ebce
1 changed files with 2 additions and 2 deletions
|
@ -61,12 +61,12 @@ module Admin
|
|||
end
|
||||
|
||||
def download_csr
|
||||
filename = "#{@api_user.username}_#{Date.today.strftime("%y%m%d")}_portal.csr.pem"
|
||||
filename = "#{@api_user.username}_#{Time.zone.today.strftime('%y%m%d')}_portal.csr.pem"
|
||||
send_data @certificate.csr, filename: filename
|
||||
end
|
||||
|
||||
def download_crt
|
||||
filename = "#{@api_user.username}_#{Date.today.strftime("%y%m%d")}_portal.crt.pem"
|
||||
filename = "#{@api_user.username}_#{Time.zone.today.strftime('%y%m%d')}_portal.crt.pem"
|
||||
send_data @certificate.crt, filename: filename
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue