mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
Allow RKRequests (and object loaders) to be 'reset' so that you can send them again.
Reset RKObjectLoaders before sending them in RKObjectLoaderTTModel. This fixes reloading of the model (i.e. pull to refresh).
This commit is contained in:
@@ -202,7 +202,10 @@ static NSString* const kDefaultLoadedTimeKey = @"RKRequestTTModelDefaultLoadedTi
|
||||
if (store.managedObjectCache) {
|
||||
cacheFetchRequests = [store.managedObjectCache fetchRequestsForResourcePath:self.resourcePath];
|
||||
}
|
||||
|
||||
|
||||
// Reset in case we are reusing the object loader (model was reloaded).
|
||||
[self.objectLoader reset];
|
||||
|
||||
if (!store.managedObjectCache || !cacheFetchRequests || _cacheLoaded) {
|
||||
_isLoading = YES;
|
||||
[self didStartLoad];
|
||||
|
||||
Reference in New Issue
Block a user