diff --git a/OCMapper/Source/ObjectMapper.m b/OCMapper/Source/ObjectMapper.m index 4b80dd6..09453d8 100644 --- a/OCMapper/Source/ObjectMapper.m +++ b/OCMapper/Source/ObjectMapper.m @@ -136,10 +136,10 @@ - (NSArray *)processDictionaryFromArray:(NSArray *)array - (id)processDictionaryFromObject:(NSObject *)object { // For example when we are mapping an array of string, we shouldn't try to map the string objects inside the array - if ([NSBundle mainBundle] != [NSBundle bundleForClass:object.class] && [object class] != [NSArray class]) - { - return object; - } + if ([object class] == [NSArray class]) + { + return object; + } NSMutableDictionary *props = [NSMutableDictionary dictionary];