Dup params to avoid nasty effects of a mutated params object in the controller

This commit is contained in:
luisramos0
2020-02-07 10:26:04 +00:00
parent 7783b28ca2
commit 43280da187

View File

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