Skip to content

Commit

Permalink
RKObjectMapping copyWithZone should use initWithClass
Browse files Browse the repository at this point in the history
  • Loading branch information
mjarvis committed Sep 11, 2013
1 parent 36ea426 commit bf7fc1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/ObjectMapping/RKObjectMapping.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ - (void)copyPropertiesFromMapping:(RKObjectMapping *)mapping

- (id)copyWithZone:(NSZone *)zone
{
RKObjectMapping *copy = [[[self class] allocWithZone:zone] init];
copy.objectClass = self.objectClass;
RKObjectMapping *copy = [[[self class] allocWithZone:zone] initWithClass:self.objectClass];
[copy copyPropertiesFromMapping:self];
copy.mutablePropertyMappings = [NSMutableArray new];

Expand Down

0 comments on commit bf7fc1e

Please sign in to comment.