         if validate && !self.isValid {
             throw ActiveRecordError.RecordNotValid(record: self)
         }
-        if self.newRecord {
+        if self.isNewRecord {
             try InsertManager(record: self).execute()
         } else {
             try UpdateManager(record: self).execute()


extension ActiveRecord {
    public static var tableName: String {
        var className = "\(self.dynamicType)"
        if let typeRange = className.rangeOfString(".Type") {
            className.replaceRange(typeRange, with: "")
        }
        return className.lowercaseString.pluralizedString()
    }
    
    public static var resourceName: String {

        }
        return errors
    }
    public func validators(action: Action) -> [String: Validator] {
        return [:]
    }
}
