ember-validations icon indicating copy to clipboard operation
ember-validations copied to clipboard

Allow defining validations at runtime

Open lukegalea opened this issue 12 years ago • 0 comments

We'd like to define validations dynamically.. something like this:

 validations: (->    
     if @get 'required'
       value:
          presence: true
 ).property 'required'

But if validations is defined as a computed property it's always empty (overridden by mixin somehow??)

lukegalea avatar Aug 15 '13 20:08 lukegalea