bookshelf-fields
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -54,3 +54,3 @@ // Generated by CoffeeScript 1.7.1 | ||
this.append_validations(model); | ||
if (this.plugin_option('create_properties') && this.options['create_property'] && this.name !== 'id') { | ||
if (this.plugin_option('create_properties') && this.options['create_property'] && this.name !== 'id' && !(this.name in model.prototype)) { | ||
return this.create_property(model); | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "bookshelf-fields", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Bookshelf fields", | ||
@@ -5,0 +5,0 @@ "main": "lib/bookshelf-fields.js", |
@@ -141,3 +141,3 @@ bookshelf-fields | ||
`mix_length: {value: 10, message: '{{label}} id too short to be valid!'}` | ||
`mix_length: {value: 10, message: '{{label}} is too short to be valid!'}` | ||
@@ -144,0 +144,0 @@ Additional options will be passed to checkit. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
55026