address saving now works - masallah, la hawle we la kuwette ila billah :)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
|
||||
helpers do
|
||||
def anonymous_id
|
||||
@@ -55,7 +55,7 @@ update_delivery_destination = ->() {
|
||||
params = @json_params.reject { |key,_| !allowed_keys.include?(key) }
|
||||
cart.delivery_destination.update_attributes(params)
|
||||
cart.delivery_destination.save!
|
||||
cart.delivery_destination.to_json
|
||||
cart.delivery_destination.to_json(:except => [:created_at, :email_verification_code, :phone_verification_code])
|
||||
}
|
||||
put '/cart/delivery_destination', &update_delivery_destination
|
||||
post '/cart/delivery_destination', &update_delivery_destination
|
||||
Reference in New Issue
Block a user