mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Permit specific params in adjustments controller
This commit is contained in:
@@ -66,6 +66,12 @@ module Spree
|
||||
def enable_updates
|
||||
@adjustment.close
|
||||
end
|
||||
|
||||
def permitted_resource_params
|
||||
params.require(:adjustment).permit(
|
||||
:label, :amount, :included_tax
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user