Class: Admin::ReviewSettingsController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::ReviewSettingsController
- Defined in:
- app/controllers/admin/review_settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/admin/review_settings_controller.rb', line 2 def update # workaround for unset checkbox behaviour params[:preferences][:include_unapproved_reviews] = false if params[:preferences][:include_unapproved_reviews].blank? Spree::Reviews::Config.set(params[:preferences]) respond_to do |format| format.html { redirect_to admin_review_settings_path } end end |