mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Refactor admin interface under namespace
This commit is contained in:
parent
0c3105a159
commit
a3b04786cf
7 changed files with 18 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
class SettingGroupsController < ApplicationController
|
||||
class Admin::SettingGroupsController < ApplicationController
|
||||
before_action :set_setting_group, only: [:show, :update]
|
||||
|
||||
def index
|
||||
|
@ -9,7 +9,7 @@ class SettingGroupsController < ApplicationController
|
|||
|
||||
def update
|
||||
if @setting_group.update(setting_group_params)
|
||||
redirect_to @setting_group
|
||||
redirect_to [:admin, @setting_group]
|
||||
else
|
||||
render 'show'
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue