From 9b52559c5a1151f1111f174f35f673379037193f Mon Sep 17 00:00:00 2001 From: Abby Date: Mon, 18 Apr 2016 14:36:39 -0700 Subject: [PATCH] Update SwiftRestModel.swift Change isExists() to exists() for SwiftyJSON, changed here: https://github.com/SwiftyJSON/SwiftyJSON/pull/457/files --- Source/SwiftRestModel.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SwiftRestModel.swift b/Source/SwiftRestModel.swift index 62c5afe..9123bdf 100644 --- a/Source/SwiftRestModel.swift +++ b/Source/SwiftRestModel.swift @@ -41,7 +41,7 @@ public class SwiftRestModel: NSObject - returns: Bool */ public func isNew() -> Bool { - if (self.data["id"].isExists()) { + if (self.data["id"].exists()) { return false } @@ -145,4 +145,4 @@ public class SwiftRestModel: NSObject } } } -} \ No newline at end of file +}