Class: Spina::Admin::SettingsController
- Inherits:
-
AdminController
- Object
- ActionController::Base
- Spina::ApplicationController
- AdminController
- Spina::Admin::SettingsController
- Defined in:
- app/controllers/spina/admin/settings_controller.rb
Instance Method Summary collapse
Methods inherited from AdminController
Instance Method Details
#edit ⇒ Object
8 9 10 |
# File 'app/controllers/spina/admin/settings_controller.rb', line 8 def edit t("spina.#{plugin.namespace}.title") end |
#update ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/controllers/spina/admin/settings_controller.rb', line 12 def update if @setting.update(settings_params) redirect_to spina.admin_edit_settings_path(plugin.namespace) else t("spina.#{plugin.namespace}.title") render :edit end end |