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

Commit 530f28bc by Mick Hansen

[fix] fix this.callee assumption

1 parent 7158db95
Showing with 1 additions and 1 deletions
......@@ -115,7 +115,7 @@ module.exports = (function() {
var values = match[1].split('-')
, fields = {}
, message = 'Validation error'
, uniqueKey = this.callee.__options.uniqueKeys[match[2]];
, uniqueKey = this.callee && this.callee.__options.uniqueKeys[match[2]];
if (!!uniqueKey) {
if (!!uniqueKey.msg) message = uniqueKey.msg;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!