Browse files

Add documentation to -JSONKeyPathForPropertyKey:

  • Loading branch information...
1 parent 16706ae commit f9f70db9e3aa793b0597b82bc36edb5b02cab5e7 @robb robb committed Dec 11, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 Mantle/MTLJSONAdapter.h
@@ -121,7 +121,10 @@ extern const NSInteger MTLJSONAdapterErrorInvalidJSONDictionary;
// Returns a JSON dictionary, or nil if a serialization error occurred.
- (NSDictionary *)JSONDictionary;
-// Looks up the JSON key path that corresponds to the given key.
+// Looks up the JSON key path in the model's +propertyKeys.
+// Subclasses may override this method to customize the adapter's seralizing
+// behavior. You should not call this method directly.
// key - The property key to retrieve the corresponding JSON key path for. This
// argument must not be nil.

0 comments on commit f9f70db

Please sign in to comment.