Class: Ez::Settings::SettingsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Ez::Settings::SettingsController
- Includes:
- RequestDispatcher
- Defined in:
- app/controllers/ez/settings/settings_controller.rb
Instance Method Summary collapse
Methods included from RequestDispatcher
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
12 13 14 |
# File 'app/controllers/ez/settings/settings_controller.rb', line 12 def index view :index end |
#show ⇒ Object
16 17 18 |
# File 'app/controllers/ez/settings/settings_controller.rb', line 16 def show render_group(group, group.store(backend)) end |
#update ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'app/controllers/ez/settings/settings_controller.rb', line 20 def update store = group.store(backend).update(params[:settings]) if store.valid? redirect_to interface.config.default_path else render_group(group, store) end end |