mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Permit specific params in tax_rates controller
This commit is contained in:
@@ -21,6 +21,13 @@ module Spree
|
||||
def create_after
|
||||
Rails.cache.delete('vat_rates')
|
||||
end
|
||||
|
||||
def permitted_resource_params
|
||||
params.require(:tax_rate).permit(
|
||||
:name, :amount, :included_in_price, :zone_id,
|
||||
:tax_category_id, :show_rate_in_label, :calculator_type
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user