lib/helpers/controller_helpers.rb in wepay-rails-0.1.9 vs lib/helpers/controller_helpers.rb in wepay-rails-0.1.10
- old
+ new
@@ -37,10 +37,10 @@
def wepay_auth_header
{'Authorization' => "Bearer: #{wepay_auth_code}"}
end
def wepay_user
- response = get "/v2/user", {:headers => wepay_auth_header}
+ response = self.class.get("/v2/user", {:headers => wepay_auth_header})
puts response.inspect
JSON.parse(response)
end
end
end
\ No newline at end of file