mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-01 06:02:26 +08:00
New Example Work
This commit is contained in:
@@ -13,14 +13,6 @@
|
||||
@implementation DBManagedObjectCache
|
||||
|
||||
- (NSArray*)fetchRequestsForResourcePath:(NSString*)resourcePath {
|
||||
// Don't return anything from the cache if we are online..
|
||||
// If we return cached objects, RestKit assumes they are up to date
|
||||
// and does not hit the server.
|
||||
|
||||
// if ([[RKObjectManager sharedManager] isOnline]) {
|
||||
// return nil;
|
||||
// }
|
||||
|
||||
if ([resourcePath isEqualToString:@"/topics"]) {
|
||||
NSFetchRequest* request = [DBTopic fetchRequest];
|
||||
NSSortDescriptor* sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"createdAt" ascending:YES];
|
||||
|
||||
Reference in New Issue
Block a user