lib/bumeran.rb in bumeran-0.3.3 vs lib/bumeran.rb in bumeran-0.3.4

- old
+ new

@@ -616,11 +616,11 @@ case response.code when 200..201 # "All good!" return response.body when 401 - self.invalidate_access_token! + Bumeran.invalidate_access_token! raise "Error 401: Unauthorized. Check login info.\n #{response.body}" when 403 raise "Error 403: Forbidden" when 404 raise "Error 404 not found" @@ -636,10 +636,10 @@ case response.code when 200..201 # "All good!" return JSON.parse(response.body) when 401 - self.invalidate_access_token! + Bumeran.invalidate_access_token! raise "Error 401: Unauthorized. Check login info.\n #{response.body}" when 403 raise "Error 403: Forbidden" when 404 raise "Error 404 not found"