mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
24 lines
488 B
Ruby
24 lines
488 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Spree
|
|
module Admin
|
|
class TaxSettingsController < Spree::Admin::BaseController
|
|
def update
|
|
Spree::Config.set(preferences_params.to_h)
|
|
|
|
respond_to do |format|
|
|
format.html {
|
|
redirect_to spree.edit_admin_tax_settings_path
|
|
}
|
|
end
|
|
end
|
|
|
|
private
|
|
|
|
def preferences_params
|
|
params.require(:preferences).permit(:products_require_tax_category)
|
|
end
|
|
end
|
|
end
|
|
end
|