mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-30 13:42:35 +08:00
Update to reflect change to designated initializer in superclass preventing the appropriate default value for savesToPersistentStore: to be set. refs #1000
This commit is contained in:
@@ -39,9 +39,10 @@
|
|||||||
|
|
||||||
@implementation RKManagedObjectRequestOperation
|
@implementation RKManagedObjectRequestOperation
|
||||||
|
|
||||||
- (id)initWithRequest:(NSURLRequest *)request responseDescriptors:(NSArray *)responseDescriptors
|
// Designated initializer
|
||||||
|
- (id)initWithHTTPRequestOperation:(RKHTTPRequestOperation *)requestOperation responseDescriptors:(NSArray *)responseDescriptors
|
||||||
{
|
{
|
||||||
self = [super initWithRequest:request responseDescriptors:responseDescriptors];
|
self = [super initWithHTTPRequestOperation:requestOperation responseDescriptors:responseDescriptors];
|
||||||
if (self) {
|
if (self) {
|
||||||
self.savesToPersistentStore = YES;
|
self.savesToPersistentStore = YES;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user