Skip to content
Permalink
Browse files

Move MTLConformingModel initializer to class extension

  • Loading branch information...
robb committed Mar 14, 2014
1 parent 3fd838e commit af1ea5857053fbdd54c13cc60710ac458a308348
Showing with 6 additions and 2 deletions.
  1. +0 −2 MantleTests/MTLTestModel.h
  2. +6 −0 MantleTests/MTLTestModel.m
@@ -73,8 +73,6 @@ extern const NSInteger MTLTestModelNameMissing;
// Conforms to MTLJSONSerializing but does not inherit from the MTLModel class.
@interface MTLConformingModel : NSObject <MTLJSONSerializing>

- (instancetype)initWithDictionary:(NSDictionary *)dictionaryValue error:(NSError **)error;

@property (nonatomic, copy) NSString *name;

@end
@@ -242,6 +242,12 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {

@end

@interface MTLConformingModel ()

- (instancetype)initWithDictionary:(NSDictionary *)dictionaryValue error:(NSError **)error;

@end

@implementation MTLConformingModel

#pragma mark Lifecycle

1 comment on commit af1ea58

@jspahrsummers

This comment has been minimized.

Copy link
Member

commented on af1ea58 Mar 14, 2014

Don't technically need this either, but it's not a big deal. :P

Please sign in to comment.
You can’t perform that action at this time.