Refactored the Rails router to respect properties specified by the model objects. Introduced new support to allow models to modify RESTful object loaders just before they are sent. Sample app completely works. Really fucking happy with how this is turning out!

This commit is contained in:
Blake Watters
2011-01-21 00:15:02 -05:00
parent 3d2601f79c
commit 07796df253
12 changed files with 117 additions and 61 deletions

View File

@@ -86,8 +86,8 @@
}
} else {
[items addObject:[TTTableLongTextItem itemWithText:_post.body]];
NSString* url = _post.attachmentPath;
[items addObject:[TTTableImageItem itemWithText:@"" imageURL:url URL:nil]];
NSString* imageURL = _post.attachmentPath;
[items addObject:[TTTableImageItem itemWithText:@"" imageURL:imageURL URL:nil]];
}
if ([self.post isNewRecord]) {