浏览代码

Merge branch 'master' into clear_basic_auth_values_on_temp_sessions

Paulo Margarido 4 年之前
父节点
当前提交
2d4f9fc617
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/shopify_api/resources/base.rb

+ 1 - 1
lib/shopify_api/resources/base.rb

@@ -87,7 +87,7 @@ module ShopifyAPI
       def resource_prefix=(value)
         @prefix_parameters = nil
 
-        resource_prefix_call = value.gsub(/:\w+/) { |key| "\#{URI.parser.escape options[#{key}].to_s}" }
+        resource_prefix_call = value.gsub(/:\w+/) { |key| "\#{URI::DEFAULT_PARSER.escape options[#{key}].to_s}" }
 
         silence_warnings do
           # Redefine the new methods.