Permalink
Browse files

Uniqueness validator fix

  • Loading branch information...
1 parent 221efcb commit 51ecc3f8c65edc247c83b45074ad9c378d1375f3 @simonoff committed Apr 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/tower/model/validator.coffee
@@ -54,6 +54,8 @@ class Tower.Model.Validator
new @Format(name, value, attributes, options)
when 'in', 'except', 'only', 'notIn', 'values', 'accepts'
new @Set(name, value, attributes, options)
+ when 'uniqueness', 'unique'
+ new @Uniqueness(name, value, attributes, options)
constructor: (name, value, attributes, options = {}) ->
@name = name

0 comments on commit 51ecc3f

Please sign in to comment.