lib/voucherify/service/validations.rb in voucherify-1.0.0 vs lib/voucherify/service/validations.rb in voucherify-1.1.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/#{URI.encode(code)}/validate", context.to_json) end end end end \ No newline at end of file