mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Update README to match updated method signature for the entity by attribute cache
This commit is contained in:
@@ -89,7 +89,7 @@ To configure an `RKEntityByAttributeCache` for indexing your application, add th
|
||||
self = [super init];
|
||||
if (self) {
|
||||
NSEntityDescription *searchWordEntity = [[self.managedObjectModel entitiesByName] objectForKey:RKSearchWordEntityName];
|
||||
self.searchWordCache = [[RKEntityByAttributeCache alloc] initWithEntity:searchWordEntity attribute:@"word" managedObjectContext:indexingContext];
|
||||
self.searchWordCache = [[RKEntityByAttributeCache alloc] initWithEntity:searchWordEntity attributes:@[ @"word" ] managedObjectContext:indexingContext];
|
||||
[self.searchWordCache load];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user