From 0faa1d35e4d508179de714591c9f4f916ad325b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3th=20Bal=C3=A1zs?= Date: Fri, 16 Sep 2016 11:49:23 +0200 Subject: [PATCH 1/2] Droplet start() is now run() --- guide/droplet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/droplet.md b/guide/droplet.md index 9ca872b0..4c15349e 100644 --- a/guide/droplet.md +++ b/guide/droplet.md @@ -17,7 +17,7 @@ let drop = Droplet() // your magic here -drop.start() +drop.run() ``` Creation of the `Droplet` normally happens in the `main.swift` file. From 749ad90780983ff1db02cabcb749f43f917f9e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3th=20Bal=C3=A1zs?= Date: Fri, 16 Sep 2016 11:55:06 +0200 Subject: [PATCH 2/2] NodeRepresentable makeNode needs a Context --- fluent/model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluent/model.md b/fluent/model.md index e51880d9..62e4e4c6 100644 --- a/fluent/model.md +++ b/fluent/model.md @@ -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