Explorar el Código

Use public_send instead of send on Session#setup

Carlos Figueiredo hace 9 años
padre
commit
f865064b70
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/shopify_api/session.rb

+ 1 - 1
lib/shopify_api/session.rb

@@ -16,7 +16,7 @@ module ShopifyAPI
     class << self
 
       def setup(params)
-        params.each { |k,value| send("#{k}=", value) }
+        params.each { |k,value| public_send("#{k}=", value) }
       end
 
       def temp(domain, token, &block)