From 4e50afff9e1807ccb5a8ff0f691c94aeaccb6325 Mon Sep 17 00:00:00 2001 From: Arnaud Breton Date: Mon, 5 Jun 2017 16:50:23 +0200 Subject: [PATCH] Fix syntax when reading URL in options --- lib/mailjet/resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mailjet/resource.rb b/lib/mailjet/resource.rb index 388e817..c678a7e 100644 --- a/lib/mailjet/resource.rb +++ b/lib/mailjet/resource.rb @@ -220,7 +220,7 @@ def change_resource_path(options = {}) perform_api_call = options[:perform_api_call] end if options.key?(:url) - url = options['url'] + url = options[:url] end end ret = {version: ver, url: url, perform_api_call: perform_api_call}