From 2c646e7f4232dbb3f8d56131ce514553eafd6a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 5 Jul 2015 16:59:33 +0200 Subject: [PATCH] README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 21c7d10e0..e907ac9ec 100644 --- a/README.md +++ b/README.md @@ -515,10 +515,8 @@ class Person : RowModel { if row.hasColumn("age") { age = row.value(named: "age") } // Int if row.hasColumn("name") { name = row.value(named: "name") } // String if row.hasColumn("creationTimestamp") { // NSDate - // The custom type DBDate that we have declared above turns - // out handy: - let dbDate: DBDate? = row.value(named: "creationTimestamp") - creationDate = dbDate?.date + // Use the DBDate custom type declared above: + creationDate = (row.value(named: "creationTimestamp") as DBDate?)?.date } } }