Ability to clear checkout
This commit is contained in:
@@ -24,6 +24,10 @@ class Checkout
|
||||
pre_discount_total - current_discount
|
||||
end
|
||||
|
||||
def clear
|
||||
@items = []
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def valid_item?(item)
|
||||
|
||||
Reference in New Issue
Block a user