Update README to match updated method signature for the entity by attribute cache

This commit is contained in:
Blake Watters
2012-12-02 00:24:14 -05:00
parent ddbd1e1f95
commit 80f5f7af56

View File

@@ -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];
}