mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add strong params for checkout
We'll need to add more as we go
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
a32ca23ca5
commit
2207aae679
@@ -85,6 +85,14 @@ class SplitCheckoutController < ::BaseController
|
||||
@checkout_step = params[:step]
|
||||
end
|
||||
|
||||
def order_params
|
||||
params.require(:order).permit(
|
||||
:email, :shipping_method_id, :special_instructions,
|
||||
bill_address_attributes: PermittedAttributes::Address.attributes,
|
||||
ship_address_attributes: PermittedAttributes::Address.attributes
|
||||
)
|
||||
end
|
||||
|
||||
def redirect_to_step
|
||||
if @order.state == "payment"
|
||||
if true# order.has_no_payment_method_chosen?
|
||||
|
||||
Reference in New Issue
Block a user