不要怂,就是干,撸起袖子干!

Commit 9bdc1c0a by Mick Hansen

Remove bad logic with validations, closes #1304

1 parent 37edaeaa
Showing with 1 additions and 1 deletions
...@@ -69,7 +69,7 @@ var validateAttributes = function() { ...@@ -69,7 +69,7 @@ var validateAttributes = function() {
, errors = {} , errors = {}
Utils._.each(this.model.rawAttributes, function(rawAttribute, field) { Utils._.each(this.model.rawAttributes, function(rawAttribute, field) {
var value = self.model.dataValues[field] || undefined var value = self.model.dataValues[field]
, hasAllowedNull = ((rawAttribute === undefined || rawAttribute.allowNull === true) && ((value === null) || (value === undefined))) , hasAllowedNull = ((rawAttribute === undefined || rawAttribute.allowNull === true) && ((value === null) || (value === undefined)))
, isSkipped = self.options.skip.length > 0 && self.options.skip.indexOf(field) !== -1 , isSkipped = self.options.skip.length > 0 && self.options.skip.indexOf(field) !== -1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!