Instantiate the sharedFactory via the static initialize method

This commit is contained in:
Blake Watters
2012-03-21 12:49:09 -04:00
parent a1d7991d29
commit a6b3d46c4b

View File

@@ -26,6 +26,12 @@ static RKTestFactory *sharedFactory = nil;
@synthesize clientClass;
@synthesize objectManagerClass;
+ (void)initialize
{
// Ensure the shared factory is initialized
[self sharedFactory];
}
+ (RKTestFactory *)sharedFactory
{
if (! sharedFactory) {