Skip to content

Commit

Permalink
Merge pull request Mantle#556 from hengw/master
Browse files Browse the repository at this point in the history
Fix MTLJSONAdapter subclass not being used in method JSONAdapterForMo…
  • Loading branch information
robb committed Jul 26, 2015
2 parents c9ce8e7 + bcabb0e commit 704673b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mantle/MTLJSONAdapter.m
Expand Up @@ -425,7 +425,7 @@ - (MTLJSONAdapter *)JSONAdapterForModelClass:(Class)modelClass error:(NSError **

if (result != nil) return result;

result = [[MTLJSONAdapter alloc] initWithModelClass:modelClass];
result = [[self.class alloc] initWithModelClass:modelClass];

if (result != nil) {
[self.JSONAdaptersByModelClass setObject:result forKey:modelClass];
Expand Down

0 comments on commit 704673b

Please sign in to comment.