mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
Redirect fix
This commit is contained in:
parent
6d4df880eb
commit
22dffa0947
1 changed files with 3 additions and 2 deletions
|
@ -29,10 +29,11 @@ class Admin::CertificatesController < AdminController
|
||||||
def sign
|
def sign
|
||||||
if @certificate.sign!
|
if @certificate.sign!
|
||||||
flash[:notice] = I18n.t('record_updated')
|
flash[:notice] = I18n.t('record_updated')
|
||||||
|
redirect_to [:admin, @api_user, @certificate]
|
||||||
else
|
else
|
||||||
flash[:alert] = I18n.t('failed_to_update_record')
|
flash.now[:alert] = I18n.t('failed_to_update_record')
|
||||||
|
render 'show'
|
||||||
end
|
end
|
||||||
redirect_to [:admin, @api_user, @certificate]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def revoke
|
def revoke
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue