Class: System::Admin::Instance::ComponentsController

Inherits:
Controller
  • Object
show all
Defined in:
app/controllers/system/admin/instance/components_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject

:nodoc:


6
7
# File 'app/controllers/system/admin/instance/components_controller.rb', line 6

def edit #:nodoc:
end

#updateObject

:nodoc:


9
10
11
12
13
14
15
# File 'app/controllers/system/admin/instance/components_controller.rb', line 9

def update #:nodoc:
  if @settings.update(settings_components_params) && current_tenant.save!
    redirect_to admin_instance_components_path, success: t('.success')
  else
    render 'edit'
  end
end