mirror of
https://github.com/modo-studio/SugarRecord.git
synced 2024-09-11 14:36:41 +03:00
Make entityName attribute in NSManagedObject a class attribute instead of a static one
This commit is contained in:
parent
d329557067
commit
8685d13916
@ -5,10 +5,8 @@ import CoreData
|
||||
|
||||
extension NSManagedObject {
|
||||
|
||||
public static var entityName: String {
|
||||
get {
|
||||
return NSStringFromClass(self).componentsSeparatedByString(".").last!
|
||||
}
|
||||
public class var entityName: String {
|
||||
return NSStringFromClass(self).componentsSeparatedByString(".").last!
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user