//
//  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 ""
    }
}

//
//  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 ?? ""
//    }
//}

Add note about failure with protocol
Add note about failure with protocol
