Version 1.5 errors if handler doesn't have Validate() method

Description

This version's mixin is causing errors because its looking for this.validate() and its looking in the handler, not in the mixin file itself.

Had to revert code.

@lmajano
```
EXCEPTION(most recent call first)
expression Error
component [modules_app.api.modules.v1.handlers.Cabins] has no function with name [validate]
modules/cbvalidation/models/Mixins.cfm in validateModel at line 57
string includeFields=""
){
return this.validate( argumentCollection=arguments );
}
modules_app/api/modules/v1/handlers/Cabins.cfc in index at line 68
tnsReqSeq = { required : false }
};
var vResults = validateModel( target=rc, constraints=vConstraints );
if( vResults.hasErrors() ){
prc.response.setError( true )
```

Status

Assignee

Unassigned

Reporter

Gavin Pickin

Labels

None

Components

Priority

Major
Configure