Retry in Ember-data

I’m trying to handle internet disconnect globally. I’m using ember-data and want to be able to retry failed requests on reconnect. Poking around I found this Persisting Records - Models - Ember Guides but this would require wrapping anything that results in a server interaction in a function and passing it to some sort of retry handler thing. I’m wondering how other people are handling this. Currently I’m thinking to dig into ember data and see if I can find a good place tie in my retry logic.

What if you were to handle this with a custom Adapter that basically wrap the ajax-call functions? Then you would only have to do it once.