NodeRepresentable makeNode needs a Context

This commit is contained in:
Tóth Balázs 2016-09-16 11:55:06 +02:00 committed by GitHub
parent 0faa1d35e4
commit 749ad90780
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ Now that we have covered initializing the model, we need to show it how to save
```swift
final class User: Model {
func makeNode() throws -> Node {
func makeNode(context: Context) throws -> Node {
return try Node(node: [
"id": id,
"name": name