Module: DiscoApp::Admin::Concerns::AppSettingsController
- Extended by:
- ActiveSupport::Concern
- Included in:
- AppSettingsController
- Defined in:
- app/controllers/disco_app/admin/concerns/app_settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
5 6 7 |
# File 'app/controllers/disco_app/admin/concerns/app_settings_controller.rb', line 5 def edit @app_settings = DiscoApp::AppSettings.instance end |
#update ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/disco_app/admin/concerns/app_settings_controller.rb', line 9 def update @app_settings = DiscoApp::AppSettings.instance if @app_settings.update(app_settings_params) flash[:success] = 'Settings updated.' redirect_to edit_admin_app_settings_path else render 'edit' end end |