Add missing attributes to variant override controller

This commit is contained in:
Luis Ramos
2020-03-05 16:05:33 +00:00
parent 0151b5ee9a
commit 7320b38b93

View File

@@ -95,7 +95,11 @@ module Admin
def variant_overrides_params
params.require(:variant_overrides).map do |variant_override|
variant_override.permit(:id, :price, :count_on_hand, :sku, :on_demand, :variant_id, :hub_id)
variant_override.permit(
:id, :variant_id, :hub_id,
:price, :count_on_hand, :sku, :on_demand,
:default_stock, :resettable
)
end
end
end