Class: Admin::OnlineSupportSettingsController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::OnlineSupportSettingsController
- Defined in:
- app/controllers/admin/online_support_settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/admin/online_support_settings_controller.rb', line 2 def update preferences = params[:preferences] enable_online_support = preferences[:enabled].nil? ? false : true; preferences.update(:enabled => enable_online_support) Spree::OnlineSupport::Config.set(preferences) respond_to do |format| format.html { redirect_to admin_online_support_settings_path } end end |