Permit specific params in adjustments controller

This commit is contained in:
Luis Ramos
2020-02-25 18:28:00 +00:00
parent d73d851095
commit 6fa1ed03dc

View File

@@ -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