gonzalezreal/Overcoat — pull request #59 by ryanmaxwell (2014-09-23 03:53:16+00:00)
Title: Deserialize the response class prior to asking for resultKey path

This is a fault I came across when trying to use Overcoat in a project.

The OVCReponse subclass is a mantle model, so we should be able to implement a class-cluster, and specify which specific subclass to deserialize to by overriding `+ (Class)classForParsingJSONDictionary:(NSDictionary *)JSONDictionary`.

However, this code path calls the class method `resultKeyPathForJSONDictionary:JSONObject` on the (abstract) class, which may not be the correct implementation.

This patch allows the correct subclass to be chosen and instantiated prior to calling `resultKeyPathForJSONDictionary:JSONObject`, which happened to be different each of my class cluster subclasses.