mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Add notifications to setting update
This commit is contained in:
parent
18c7c2f374
commit
eedbc211b5
2 changed files with 6 additions and 1 deletions
|
@ -10,8 +10,10 @@ class Admin::SettingGroupsController < ApplicationController
|
|||
|
||||
def update
|
||||
if @setting_group.update(setting_group_params)
|
||||
flash[:notice] = I18n.t('shared.setting_updated')
|
||||
redirect_to [:admin, @setting_group]
|
||||
else
|
||||
flash[:alert] = I18n.t('shared.failed_to_update_setting')
|
||||
render 'show'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue