Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions OCMapper/Source/ObjectMapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down