Skip to content

Commit

Permalink
Merge pull request ibireme#45 from leavesster/master
Browse files Browse the repository at this point in the history
type error in readme
  • Loading branch information
ibireme committed Jan 19, 2016
2 parents 0f604ee + 56c8cff commit 51bc96c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ You can map a json key (key path) or an array of json key (key path) to one or m

@implementation Attributes
+ (NSArray *)modelPropertyBlacklist {
return @{@"test1", @"test2"};
return @[@"test1", @"test2"];
}
+ (NSArray *)modelPropertyWhitelist {
return @{@"name"};
return @[@"name"];
}
@end

Expand Down Expand Up @@ -513,11 +513,11 @@ EEE MMM dd HH:mm:ss Z yyyy
@implementation Attributes
// 如果实现了该方法,则处理过程中会忽略该列表内的所有属性
+ (NSArray *)modelPropertyBlacklist {
return @{@"test1", @"test2"};
return @[@"test1", @"test2"];
}
// 如果实现了该方法,则处理过程中不会处理该列表外的属性。
+ (NSArray *)modelPropertyWhitelist {
return @{@"name"};
return @[@"name"];
}
@end

Expand Down

0 comments on commit 51bc96c

Please sign in to comment.