changed to use paramName instead of baseName to support the toParamName method

This commit is contained in:
Tony Tam 2012-12-18 22:53:03 -08:00
parent f1f466b69f
commit c9397ce1e7

View File

@ -26,7 +26,7 @@ class {{classname}} {
{{#requiredParamCount}}
// verify required params are set
(Set({{/requiredParamCount}}{{#requiredParams}} {{baseName}}{{#hasMore}}, {{/hasMore}}{{/requiredParams}}{{#requiredParamCount}}) - null).size match {
(Set({{/requiredParamCount}}{{#requiredParams}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/requiredParams}}{{#requiredParamCount}}) - null).size match {
case {{requiredParamCount}} => // all required values set
case _ => throw new Exception("missing required params")
}