cerebral-legacy / cerebral-module-forms

Form handling for Cerebral
http://cerebral-website.herokuapp.com/documentation/cerebral-module-forms
MIT License
12 stars 5 forks source link

hasValue returns rules[key] is not a function #14

Closed edgesoft closed 8 years ago

edgesoft commented 8 years ago

If we set up forms with isValue and pass parameter to it this error will occur.

rules[key] is not a function

form

name: {
  value: [],
  isValue: ['minLength:3']
} 

The isValue needs to be parsed and also passed to the rule.