[#229] Update deprecated method in the Realm version 0.99

This commit is contained in:
Pedro Piñera Buendía 2016-04-28 00:45:25 +02:00
parent 6c15b62401
commit d11c4157d4

View File

@ -58,7 +58,9 @@ public class RealmDefaultStorage: Storage {
}
public func removeStore() throws {
try NSFileManager.defaultManager().removeItemAtPath(Realm().path)
if let url = try Realm().configuration.fileURL {
try NSFileManager.defaultManager().removeItemAtURL(url)
}
}
public func operation(operation: (context: Context, save: () -> Void) throws -> Void) throws {