mirror of
https://github.com/modo-studio/SugarRecord.git
synced 2024-09-11 14:36:41 +03:00
[#229] Update deprecated method in the Realm version 0.99
This commit is contained in:
parent
6c15b62401
commit
d11c4157d4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user