Explorar el Código

Merge pull request #197 from aalfson/master

Calculate credit_limit per shop
Jamie Dwyer hace 7 años
padre
commit
fcdd350f66
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      lib/shopify_api/limits.rb

+ 1 - 2
lib/shopify_api/limits.rb

@@ -39,8 +39,7 @@ module ShopifyAPI
       # @return {Integer}
       #
       def credit_limit(scope=:shop)
-        @api_credit_limit ||= {}
-        @api_credit_limit[scope] ||= api_credit_limit_param(scope).pop.to_i - 1
+        api_credit_limit_param(scope).pop.to_i - 1
       end
       alias_method :call_limit, :credit_limit