mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
Dup params to avoid nasty effects of a mutated params object in the controller
This commit is contained in:
@@ -6,7 +6,7 @@ module Checkout
|
||||
attr_reader :shipping_method_id
|
||||
|
||||
def initialize(params, order, current_user)
|
||||
@params = params
|
||||
@params = params.dup
|
||||
@order = order
|
||||
@current_user = current_user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user