Ver código fonte

Merge branch 'master' into clear_basic_auth_values_on_temp_sessions

Paulo Margarido 4 anos atrás
pai
commit
2d4f9fc617
1 arquivos alterados com 1 adições e 1 exclusões
  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.