lib/voucherify/service/validations.rb in voucherify-3.0.0 vs lib/voucherify/service/validations.rb in voucherify-4.0.0

- old
+ new

@@ -8,10 +8,10 @@ def initialize(client) @client = client end def validate_voucher(code, context = {}) - @client.post("/vouchers/#{URI.encode(code)}/validate", context.to_json) + @client.post("/vouchers/#{ERB::Util.url_encode(code)}/validate", context.to_json) end def validate(code, context = {}) if code.is_a? Hash context = code