Skip to content

Instantly share code, notes, and snippets.

@blakewatters
Created September 6, 2012 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blakewatters/3661158 to your computer and use it in GitHub Desktop.
Save blakewatters/3661158 to your computer and use it in GitHub Desktop.
// Add to serializer
if ([mapping isKindOfClass:[RKEntityMapping class]]) {
NSAttributeDescription *attribute = [(RKEntityMapping *)mapping attributesByName:self.sourceKeyPath];
if ([attribute attributeType] == NSBooleanAttributeType) {
transformedValue = [value boolValue] ? @"true" : @"false";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment