      
      - Parameter user: The user object that conforms `UserType`.
     */
-    public static func setCurrentUser<T:UserType>(user:T) {
+    public static func setCurrentUser(user: UserType) {
         NOPersistentStore.cacheWithId("UserManager").setSerializable(user, forKey: "User")
     }
     

//
//  UserManager.swift
//  BorsenMobil
//
//  Created by Jakob Mygind on 18/08/15.
//  Copyright © 2015 Borsen. All rights reserved.
//

import Foundation
import Serializable
import Cashier

public typealias UserType = Serializable

public protocol UserManagerType {}

public extension UserManagerType {
    

     
     - Returns: Object that confroms with `UserType` with informations about the current user or `nil`.
    */
    public static func currentUser() -> UserType? {
        return NOPersistentStore.cacheWithId("UserManager").serializableForKey("User")
    }
    
