mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +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
|
||||
if @certificate.sign!
|
||||
flash[:notice] = I18n.t('record_updated')
|
||||
redirect_to [:admin, @api_user, @certificate]
|
||||
else
|
||||
flash[:alert] = I18n.t('failed_to_update_record')
|
||||
flash.now[:alert] = I18n.t('failed_to_update_record')
|
||||
render 'show'
|
||||
end
|
||||
redirect_to [:admin, @api_user, @certificate]
|
||||
end
|
||||
|
||||
def revoke
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue