mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
22 lines
457 B
Ruby
22 lines
457 B
Ruby
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
|