lib/helpers/controller_helpers.rb in wepay-rails-0.1.10 vs lib/helpers/controller_helpers.rb in wepay-rails-0.1.11

- old
+ new

@@ -25,22 +25,22 @@ def gateway @gateway ||= Gateway.new end def wepay_auth_code=(auth_code) - @wepay_auth_code = auth_code + gateway.wepay_auth_code = auth_code end def wepay_auth_code - @wepay_auth_code + gateway.wepay_auth_code end def wepay_auth_header - {'Authorization' => "Bearer: #{wepay_auth_code}"} + {'Authorization' => "Bearer: #{gateway.wepay_auth_code}"} end def wepay_user - response = self.class.get("/v2/user", {:headers => wepay_auth_header}) + response = gateway.get("/v2/user", {:headers => wepay_auth_header}) puts response.inspect JSON.parse(response) end end end \ No newline at end of file