Class: Lcms::Engine::Admin::SettingsController
- Inherits:
-
AdminController
- Object
- ActionController::Base
- Lcms::Engine::ApplicationController
- AdminController
- Lcms::Engine::Admin::SettingsController
- Defined in:
- app/controllers/lcms/engine/admin/settings_controller.rb
Constant Summary
Constants inherited from AdminController
AdminController::RE_GOOGLE_FOLDER
Instance Method Summary collapse
Methods inherited from AdminController
Methods included from PathHelper
#dynamic_document_path, #dynamic_material_path, #dynamic_path
Instance Method Details
#toggle_editing_enabled ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/lcms/engine/admin/settings_controller.rb', line 7 def toggle_editing_enabled Settings[:editing_enabled] = !Settings[:editing_enabled] notice = Settings[:editing_enabled] ? t('.enabled') : t('.disabled') redirect_to lcms_engine.admin_resources_path, notice: notice end |