//
//  CloudRecordType.swift
//  GROCloudStore
//
//  Created by Andrew Shepard on 2/9/16.
//  Copyright © 2016 Andrew Shepard. All rights reserved.
//

import Foundation
import CoreData

// FIXME: this isn't working right now, fix it

//protocol CloudRecordType {
//    var recordType: String { get }
//}

//extension CloudRecordType {
//    var recordType: String {
//        return ""
//    }
//}

//extension NSFetchRequest {
//    var recordType: String {
//        return self.entityName ?? ""
//    }
//}

//
//  CloudRecordType.swift
//  GROCloudStore
//
//  Created by Andrew Shepard on 2/9/16.
//  Copyright © 2016 Andrew Shepard. All rights reserved.
//

import Foundation
import CoreData

protocol CloudRecordType {
    var recordType: String { get }
}

// FIXME: do you need this anymore?

//extension NSFetchRequest where Self == NS {
//    override var recordType: String {
//        return self.entityName ?? ""
//    }
//}

extension NSPersistentStoreRequest: CloudRecordType {
    var recordType: String {
        return ""
    }
}

--- 
+++ 
@@ -9,20 +9,20 @@
 import Foundation
 import CoreData
 
-protocol CloudRecordType {
-    var recordType: String { get }
-}
+// FIXME: this isn't working right now, fix it
 
-// FIXME: do you need this anymore?
+//protocol CloudRecordType {
+//    var recordType: String { get }
+//}
 
-//extension NSFetchRequest where Self == NS {
-//    override var recordType: String {
+//extension CloudRecordType {
+//    var recordType: String {
+//        return ""
+//    }
+//}
+
+//extension NSFetchRequest {
+//    var recordType: String {
 //        return self.entityName ?? ""
 //    }
 //}
-
-extension NSPersistentStoreRequest: CloudRecordType {
-    var recordType: String {
-        return ""
-    }
-}
Add note about failure with protocol
